Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
MonilBhavsar committed Nov 29, 2023
1 parent 305f9a1 commit 3c9085a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/TwoFactorAuthActions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Onyx from 'react-native-onyx';
import Navigation from '@libs/Navigation/Navigation';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import ROUTES, {Route} from '@src/ROUTES';
import {TwoFactorAuthStep} from '@src/types/onyx/Account';

/**
Expand All @@ -18,7 +18,7 @@ function setCodesAreCopied() {
Onyx.merge(ONYXKEYS.ACCOUNT, {codesAreCopied: true});
}

function quitAndNavigateBack(backTo?: string) {
function quitAndNavigateBack(backTo?: Route) {
clearTwoFactorAuthData();
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
Navigation.goBack(backTo || ROUTES.SETTINGS_SECURITY);
Expand Down

0 comments on commit 3c9085a

Please sign in to comment.