diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.js b/src/pages/settings/Wallet/WalletPage/WalletPage.js
index 3a6af1be51dc..5f11fd853745 100644
--- a/src/pages/settings/Wallet/WalletPage/WalletPage.js
+++ b/src/pages/settings/Wallet/WalletPage/WalletPage.js
@@ -489,53 +489,56 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen
}}
withoutOverlay
anchorRef={paymentMethodButtonRef}
+ onModalHide={resetSelectedPaymentMethodData}
>
-
- {isPopoverBottomMount && (
-
- )}
- {shouldShowMakeDefaultButton && (
+ {!showConfirmDeleteModal ? (
+
+ {isPopoverBottomMount && (
+
+ )}
+ {shouldShowMakeDefaultButton && (
+
+ ) : (
+ {
+ deletePaymentMethod();
+ hideDefaultDeleteMenu();
}}
- style={[shouldShowMakeDefaultButton ? styles.mt4 : {}]}
- text={translate('common.delete')}
+ onCancel={hideDefaultDeleteMenu}
+ title={translate('walletPage.deleteAccount')}
+ prompt={translate('walletPage.deleteConfirmation')}
+ confirmText={translate('common.delete')}
+ cancelText={translate('common.cancel')}
+ shouldShowCancelButton
danger
/>
-
+ )}
)}
- {
- deletePaymentMethod();
- hideDefaultDeleteMenu();
- }}
- onCancel={hideDefaultDeleteMenu}
- title={translate('walletPage.deleteAccount')}
- prompt={translate('walletPage.deleteConfirmation')}
- confirmText={translate('common.delete')}
- cancelText={translate('common.cancel')}
- shouldShowCancelButton
- danger
- onModalHide={resetSelectedPaymentMethodData}
- />