Skip to content

Commit

Permalink
fix: use replace to return to /
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 27, 2024
1 parent 3688ba7 commit d049750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/settings/wallets/SetupWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export function SetupWallet() {
if (router.canDismiss()) {
router.dismissAll();
}
router.replace("/");
};

React.useEffect(() => {
Expand Down Expand Up @@ -160,6 +161,7 @@ export function SetupWallet() {
if (router.canDismiss()) {
router.dismissAll();
}
router.replace("/");
}}
>
<XIcon className="text-foreground" />
Expand Down

0 comments on commit d049750

Please sign in to comment.