Skip to content

Commit

Permalink
Merge pull request #227 from getAlby/task-setup-wallet
Browse files Browse the repository at this point in the history
chore: dismiss all before returning home
  • Loading branch information
im-adithya authored Dec 24, 2024
2 parents 08a4dee + d355e8f commit 58d8171
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/settings/wallets/SetupWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export function SetupWallet() {
position: "top",
});

router.replace("/");
if (router.canDismiss()) {
router.dismissAll();
}
};

React.useEffect(() => {
Expand Down Expand Up @@ -155,7 +157,9 @@ export function SetupWallet() {
useAppStore
.getState()
.setSelectedWalletId(walletIdWithConnection);
router.replace("/");
if (router.canDismiss()) {
router.dismissAll();
}
}}
>
<XIcon className="text-foreground" />
Expand Down

0 comments on commit 58d8171

Please sign in to comment.