Skip to content

Commit

Permalink
Merge pull request #36850 from bernhardoj/fix/36618-infinite-loading-…
Browse files Browse the repository at this point in the history
…unlink-page

Fix infinite loading when unlinking contact method
  • Loading branch information
luacmartins authored Feb 26, 2024
2 parents b16efc9 + b796d26 commit 3a779bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/UnlinkLoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Navigation from '@libs/Navigation/Navigation';
import type {PublicScreensParamList} from '@navigation/types';
import * as Session from '@userActions/Session';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type SCREENS from '@src/SCREENS';
import type {Account} from '@src/types/onyx';

Expand Down Expand Up @@ -36,7 +35,7 @@ function UnlinkLoginPage({route, account}: UnlinkLoginPageProps) {
return;
}

Navigation.navigate(ROUTES.HOME);
Navigation.goBack();
}, [prevIsLoading, account?.isLoading]);

return <FullScreenLoadingIndicator />;
Expand Down

0 comments on commit 3a779bf

Please sign in to comment.