Skip to content

Commit

Permalink
Merge pull request #37998 from bernhardoj/fix/37982-transfer-balance-…
Browse files Browse the repository at this point in the history
…page-navigation

Fix wrong back navigation transition animation in transfer balance page
  • Loading branch information
mountiny authored Mar 11, 2024
2 parents 59ac113 + 87f0056 commit ab1997d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/PaymentMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function saveWalletTransferMethodType(filterPaymentMethodType?: FilterMethodPaym

function dismissSuccessfulTransferBalancePage() {
Onyx.merge(ONYXKEYS.WALLET_TRANSFER, {shouldShowSuccess: false});
Navigation.goBack(ROUTES.SETTINGS_WALLET);
Navigation.goBack();
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/pages/settings/Wallet/TransferBalancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ function TransferBalancePage({bankAccountList, fundList, userWallet, walletTrans
titleKey="notFound.pageNotFound"
subtitleKey="transferAmountPage.notHereSubTitle"
linkKey="transferAmountPage.goToWallet"
onLinkPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)}
>
<HeaderWithBackButton
title={translate('common.transferBalance')}
shouldShowBackButton
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WALLET)}
/>
<View style={[styles.flexGrow1, styles.flexShrink1, styles.flexBasisAuto, styles.justifyContentCenter]}>
<CurrentWalletBalance balanceStyles={[styles.transferBalanceBalance]} />
Expand Down

0 comments on commit ab1997d

Please sign in to comment.