File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ interface INavbarWalletComponent {
14
14
const NavbarWalletComponent : FC = ( {
15
15
includeUrl = [ ] ,
16
16
} : INavbarWalletComponent ) => {
17
- if ( ! includeUrl . includes ( location ?. pathname ) ) {
17
+ if ( ! includeUrl . some ( item => location ?. pathname . includes ( item ) ) ) {
18
18
return null ;
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export const LoginProvider = ({ children }) => {
92
92
useEffect ( ( ) => {
93
93
const url = new URL ( window . location . href ) ;
94
94
getStaleDate ( ) ;
95
- if ( REF_ALLOW_LOGIN_PATH . includes ( url . pathname ) ) {
95
+ if ( REF_ALLOW_LOGIN_PATH . some ( ( item ) => url . pathname . includes ( item ) ) ) {
96
96
const token = url . searchParams . get ( "token" ) ;
97
97
if ( token ) {
98
98
saveTokenString ( token ) ;
You can’t perform that action at this time.
0 commit comments