Skip to content

Commit

Permalink
fixed success modal not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 7, 2024
1 parent 8d0cf71 commit f8537e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/components/Success/Success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ export default function Success({
console.log('axios balance', r.data);
setBalanceToShow(r.data.result);
dispatch(setBalance(r.data.result));
setTimeout(() => {
setDrawerOpen(false);
router.push(`/transaction?hash=${transactionHash}`);
}, 1000);
})
.catch((e) => {
console.log('axios balance error', e);
});

setTimeout(() => {
setDrawerOpen(false);
/* dispatch(setSheet(false)); */
router.push(`/transactions`);
}, 1000);
}
}, [transactionStatus]);

Expand Down

0 comments on commit f8537e1

Please sign in to comment.