From 8784eeca14192c3042f2ef36b1c06bceef844020 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Wed, 10 Apr 2024 16:27:46 +0700 Subject: [PATCH] fix: Infinite skeleton loading when navigate --- src/libs/actions/Welcome.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/actions/Welcome.ts b/src/libs/actions/Welcome.ts index fc72733b190c..87762bc856ca 100644 --- a/src/libs/actions/Welcome.ts +++ b/src/libs/actions/Welcome.ts @@ -9,7 +9,6 @@ let hasSelectedPurpose: boolean | undefined; let hasProvidedPersonalDetails: boolean | undefined; let isFirstTimeNewExpensifyUser: boolean | undefined; let hasDismissedModal: boolean | undefined; -let hasSelectedChoice: boolean | undefined; let isLoadingReportData = true; type DetermineOnboardingStatusProps = { @@ -89,7 +88,7 @@ function isOnboardingFlowCompleted({onCompleted, onNotCompleted}: HasCompletedOn * - Whether we have loaded all reports the server knows about */ function checkOnReady() { - const hasRequiredOnyxKeysBeenLoaded = [isFirstTimeNewExpensifyUser, hasSelectedChoice, hasDismissedModal].every((value) => value !== undefined); + const hasRequiredOnyxKeysBeenLoaded = [isFirstTimeNewExpensifyUser, hasDismissedModal].every((value) => value !== undefined); if (isLoadingReportData || !hasRequiredOnyxKeysBeenLoaded) { return;