Skip to content

Commit d0fd7db

Browse files
Merge pull request #2287 from Web3Auth/fix/external-wallet-disconnect-mode
(fix): blank modal after disconnect
2 parents a628407 + 7b4d54f commit d0fd7db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/modal/src/ui/loginModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { createRoot } from "react-dom/client";
3131

3232
import { getLoginModalAnalyticsProperties } from "../utils";
3333
import Widget from "./components/Widget";
34-
import { DEFAULT_LOGO_DARK, DEFAULT_LOGO_LIGHT, DEFAULT_ON_PRIMARY_COLOR, DEFAULT_PRIMARY_COLOR } from "./constants";
34+
import { DEFAULT_LOGO_DARK, DEFAULT_LOGO_LIGHT, DEFAULT_ON_PRIMARY_COLOR, DEFAULT_PRIMARY_COLOR, PAGES } from "./constants";
3535
import { AnalyticsContext } from "./context/AnalyticsContext";
3636
import { ThemedContext } from "./context/ThemeContext";
3737
import {
@@ -421,6 +421,7 @@ export class LoginModal {
421421
status: MODAL_STATUS.CONNECTED,
422422
modalVisibility: true,
423423
postLoadingMessage: "modal.post-loading.connected",
424+
currentPage: PAGES.LOGIN,
424425
});
425426
} else {
426427
this.setState({

0 commit comments

Comments
 (0)