From 310212572061dfbf5ae468766fc3672b2016f24c Mon Sep 17 00:00:00 2001 From: Gandalf Date: Wed, 18 Sep 2024 13:48:26 +0530 Subject: [PATCH] implement suggestions --- src/pages/settings/Wallet/ChooseTransferAccountPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/Wallet/ChooseTransferAccountPage.tsx b/src/pages/settings/Wallet/ChooseTransferAccountPage.tsx index 327615187611..c6894d29fe63 100644 --- a/src/pages/settings/Wallet/ChooseTransferAccountPage.tsx +++ b/src/pages/settings/Wallet/ChooseTransferAccountPage.tsx @@ -36,7 +36,7 @@ function ChooseTransferAccountPage() { * @param accountType of the selected account type * @param account of the selected account data */ - const selectAccountAndNavigateBack = (event?: GestureResponderEvent | KeyboardEvent, accountType?: string, account?: AccountData) => { + const selectAccountAndNavigateBack = (accountType?: string, account?: AccountData) => { PaymentMethods.saveWalletTransferAccountTypeAndID( accountType ?? '', (accountType === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT ? account?.bankAccountID?.toString() : account?.fundID?.toString()) ?? '', @@ -99,7 +99,7 @@ function ChooseTransferAccountPage() { onSelectRow={(value) => { const accountType = value?.bankAccount?.accountType; const accountData = value?.bankAccount?.accountData; - selectAccountAndNavigateBack(undefined, accountType, accountData); + selectAccountAndNavigateBack(accountType, accountData); }} shouldSingleExecuteRowSelect shouldUpdateFocusedIndex