Skip to content

Commit

Permalink
Delete bank account along with resetting it
Browse files Browse the repository at this point in the history
  • Loading branch information
allgandalf committed Apr 21, 2024
1 parent 0f30b3d commit f82b889
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/workspace/WorkspaceResetBankAccountModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ function WorkspaceResetBankAccountModal({reimbursementAccount, session, user}: W
}
danger
onCancel={BankAccounts.cancelResetFreePlanBankAccount}
onConfirm={() => BankAccounts.resetFreePlanBankAccount(bankAccountID, session, achData?.policyID ?? '', user)}
onConfirm={() => {
BankAccounts.resetFreePlanBankAccount(bankAccountID, session, achData?.policyID ?? '', user);
if (bankAccountID) {
BankAccounts.deletePaymentBankAccount(bankAccountID);
}
}}
shouldShowCancelButton
isVisible
/>
Expand Down

0 comments on commit f82b889

Please sign in to comment.