Skip to content

Commit

Permalink
Merge pull request #57246 from software-mansion-labs/fix/refresh-veri…
Browse files Browse the repository at this point in the history
…fy-step

[CP Staging] Fix goBack functionality on the 'Verify' step of two-factor verification.

(cherry picked from commit 87be07d)

(CP triggered by francoisl)
  • Loading branch information
mountiny authored and OSBotify committed Feb 21, 2025
1 parent 9c38f9f commit 98911e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function useModalStackScreenOptions(getScreenOptions?: GetModalStackScreenOption
(): PlatformStackNavigationOptions => ({
...hideKeyboardOnSwipe,
headerShown: false,
animationTypeForReplace: 'pop',
native: {
contentStyle: styles.navigationScreenCardStyle,
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Security/TwoFactorAuth/VerifyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function VerifyPage({route}: VerifyPageProps) {
text: translate('twoFactorAuth.stepVerify'),
total: 3,
}}
onBackButtonPress={Navigation.goBack}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_2FA_ROOT.getRoute(route.params?.backTo, route.params?.forwardTo))}
>
<ScrollView
keyboardShouldPersistTaps="handled"
Expand Down

0 comments on commit 98911e1

Please sign in to comment.