Skip to content

Commit

Permalink
fix deposit popup (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh authored Nov 19, 2024
1 parent e10d137 commit f181040
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,17 @@ export default function Bridge() {
if (!amount || !isConnected || isLoading) {
return;
}
if (activeTab === "deposit") {
setIsConfirmationOpen(true);
}
if (activeTab === "withdraw") {
switch (withdrawStatus) {
case "ready_to_prove":
handleWithdrawProve();
case "proved":
handleWithdrawFinalize();
default:
handleWithdrawInitiate();
setIsConfirmationOpen(true);
}
return;
}
Expand Down Expand Up @@ -433,7 +436,7 @@ export default function Bridge() {

// waitToFinalize is buggy, so add a delay to wait before finalizing tx (12 secs for testnet)
// TODO: refactor as env var if withdraw window is changed
await new Promise((resolve) => setTimeout(resolve, 12000));
// await new Promise((resolve) => setTimeout(resolve, 12000));

// Finalize the withdrawal
const finalizeHash = await walletClientL1.finalizeWithdrawal({
Expand Down

0 comments on commit f181040

Please sign in to comment.