Skip to content

Commit

Permalink
use replace for navigate action
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Nov 19, 2024
1 parent 7e2a78e commit a5fb8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Wallet/VerifyAccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import * as ErrorUtils from '@libs/ErrorUtils';
import Navigation from '@libs/Navigation/Navigation';
import type {SettingsNavigatorParamList} from '@libs/Navigation/types';
import * as User from '@userActions/User';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type SCREENS from '@src/SCREENS';

Expand Down Expand Up @@ -53,8 +54,7 @@ function VerifyAccountPage({route}: VerifyAccountPageProps) {
if (!navigateBackTo) {
return;
}
Navigation.goBack();
Navigation.navigate(navigateBackTo);
Navigation.navigate(navigateBackTo, CONST.NAVIGATION.TYPE.UP);
}, [isUserValidated, navigateBackTo]);

useEffect(() => {
Expand Down

0 comments on commit a5fb8b7

Please sign in to comment.