diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx index 7e242a5c8782..03b69a8f73ab 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx @@ -34,6 +34,7 @@ import PaymentMethodList from '@pages/settings/Wallet/PaymentMethodList'; import WalletEmptyState from '@pages/settings/Wallet/WalletEmptyState'; import variables from '@styles/variables'; import * as BankAccounts from '@userActions/BankAccounts'; +import * as Modal from '@userActions/Modal'; import * as PaymentMethods from '@userActions/PaymentMethods'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; @@ -576,27 +577,27 @@ function WalletPage({bankAccountList = {}, cardList = {}, fundList = {}, isLoadi setShowConfirmDeleteModal(true)} + onPress={() => Modal.close(() => setShowConfirmDeleteModal(true))} wrapperStyle={[styles.pv3, styles.ph5, !shouldUseNarrowLayout ? styles.sidebarPopover : {}]} /> )} - { - deletePaymentMethod(); - hideDefaultDeleteMenu(); - }} - onCancel={hideDefaultDeleteMenu} - title={translate('walletPage.deleteAccount')} - prompt={translate('walletPage.deleteConfirmation')} - confirmText={translate('common.delete')} - cancelText={translate('common.cancel')} - shouldShowCancelButton - danger - onModalHide={resetSelectedPaymentMethodData} - /> + { + deletePaymentMethod(); + hideDefaultDeleteMenu(); + }} + onCancel={hideDefaultDeleteMenu} + title={translate('walletPage.deleteAccount')} + prompt={translate('walletPage.deleteConfirmation')} + confirmText={translate('common.delete')} + cancelText={translate('common.cancel')} + shouldShowCancelButton + danger + onModalHide={resetSelectedPaymentMethodData} + /> )}