Skip to content

Commit

Permalink
Merge pull request #2344 from Badger-Finance/close-modal-after-succes…
Browse files Browse the repository at this point in the history
…sful-deposit-withdraw

fix: Close modal after successful deposit/withdraw transaction
mrbasado authored Sep 6, 2022
2 parents 1a25f45 + 38f8f64 commit b771778
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components-v2/common/dialogs/VaultDeposit.tsx
Original file line number Diff line number Diff line change
@@ -220,7 +220,7 @@ export const VaultDeposit = observer(({ open = false, vault, depositAdvisory, on
});
if (result === TransactionStatus.Success) {
await user.reloadBalances();
vaultDetail.toggleDepositDialog();
onClose();
}
};

2 changes: 1 addition & 1 deletion src/components-v2/common/dialogs/VaultWithdraw.tsx
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@ export const VaultWithdraw = observer(({ open = false, vault, withdrawAdvisory,
});
if (result === TransactionStatus.Success) {
await user.reloadBalances();
vaultDetail.toggleWithdrawDialog();
onClose();
}
}
};

0 comments on commit b771778

Please sign in to comment.