Skip to content

Commit ffbd55e

Browse files
author
Vlad Lo.
committed
Unified login interface for MM Docs via MM Wallet
1 parent e7537d3 commit ffbd55e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/components/NavbarWallet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface INavbarWalletComponent {
1414
const NavbarWalletComponent: FC = ({
1515
includeUrl = [],
1616
}: INavbarWalletComponent) => {
17-
if (!includeUrl.includes(location?.pathname)) {
17+
if (!includeUrl.some(item => location?.pathname.includes(item))) {
1818
return null;
1919
}
2020

src/theme/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const LoginProvider = ({ children }) => {
9292
useEffect(() => {
9393
const url = new URL(window.location.href);
9494
getStaleDate();
95-
if (REF_ALLOW_LOGIN_PATH.includes(url.pathname)) {
95+
if (REF_ALLOW_LOGIN_PATH.some((item) => url.pathname.includes(item))) {
9696
const token = url.searchParams.get("token");
9797
if (token) {
9898
saveTokenString(token);

static/img/icons/jazzicon.png

4.57 KB
Loading

0 commit comments

Comments
 (0)