Skip to content

Commit d049750

Browse files
committed
fix: use replace to return to /
1 parent 3688ba7 commit d049750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pages/settings/wallets/SetupWallet.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export function SetupWallet() {
128128
if (router.canDismiss()) {
129129
router.dismissAll();
130130
}
131+
router.replace("/");
131132
};
132133

133134
React.useEffect(() => {
@@ -160,6 +161,7 @@ export function SetupWallet() {
160161
if (router.canDismiss()) {
161162
router.dismissAll();
162163
}
164+
router.replace("/");
163165
}}
164166
>
165167
<XIcon className="text-foreground" />

0 commit comments

Comments
 (0)