From d8b9866ce701ac04351296fa4b93bc7aa610fe09 Mon Sep 17 00:00:00 2001 From: BhuvaneshPatil Date: Sat, 11 Nov 2023 16:39:56 +0530 Subject: [PATCH] fix: double tap on currency selects AFN --- src/pages/iou/IOUCurrencySelection.js | 37 +++++++++++++++++---------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/src/pages/iou/IOUCurrencySelection.js b/src/pages/iou/IOUCurrencySelection.js index 20344a08a2c8..eab9ab5a7510 100644 --- a/src/pages/iou/IOUCurrencySelection.js +++ b/src/pages/iou/IOUCurrencySelection.js @@ -157,20 +157,29 @@ function IOUCurrencySelection(props) { onEntryTransitionEnd={() => optionsSelectorRef.current && optionsSelectorRef.current.focus()} testID={IOUCurrencySelection.displayName} > - Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID))} - /> - + {({didScreenTransitionEnd}) => ( + <> + Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID))} + /> + { + if (!didScreenTransitionEnd) { + return; + } + confirmCurrencySelection(option); + }} + headerMessage={headerMessage} + initiallyFocusedOptionKey={initiallyFocusedOptionKey} + showScrollIndicator + /> + + )} ); }