Skip to content

Commit

Permalink
remove setTimeout.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <[email protected]>
  • Loading branch information
Krishna2323 committed Aug 27, 2024
1 parent 29ea19a commit 55929c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/AddPaymentCard/PaymentCardCurrencyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ function PaymentCardCurrencyModal({isVisible, currencies, currentCurrency = CONS
onModalHide={onClose}
hideModalContentWhileAnimating
innerContainerStyle={styles.RHPNavigatorContainer(isSmallScreenWidth)}
onBackdropPress={() => {
Navigation.dismissModal();
setTimeout(() => {
onClose?.();
}, 50);
}}
onBackdropPress={Navigation.dismissModal}
useNativeDriver
>
<ScreenWrapper
Expand Down

0 comments on commit 55929c2

Please sign in to comment.