diff --git a/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx b/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx index ad2ed9ebd215..66464a26d73c 100644 --- a/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx +++ b/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx @@ -47,7 +47,7 @@ function BottomTabBar({isLoadingApp = false}: PurposeForUsingExpensifyModalProps return; } - Welcome.isOnboardingFlowCompletedAsync({onNotCompleted: () => Navigation.navigate(ROUTES.ONBOARD)}); + Welcome.isOnboardingFlowCompleted({onNotCompleted: () => Navigation.navigate(ROUTES.ONBOARD)}); // eslint-disable-next-line react-hooks/exhaustive-deps }, [isLoadingApp]); diff --git a/src/libs/actions/Welcome.ts b/src/libs/actions/Welcome.ts index db6662f40000..4ff78b550e41 100644 --- a/src/libs/actions/Welcome.ts +++ b/src/libs/actions/Welcome.ts @@ -63,7 +63,7 @@ function isAbleToDetermineOnboardingStatus({onAble, onNotAble}: DetermineOnboard * Returns true if user has completed the onboarding * flow, false otherwise. */ -function isOnboardingFlowCompletedAsync({onCompleted, onNotCompleted}: HasCompletedOnboardingFlowProps) { +function isOnboardingFlowCompleted({onCompleted, onNotCompleted}: HasCompletedOnboardingFlowProps) { isOnboardingFlowStatusKnownPromise.then(() => { const onboardingFlowCompleted = hasProvidedPersonalDetails && hasSelectedPurpose; @@ -187,4 +187,4 @@ Onyx.connect({ }, }); -export {onServerDataReady, isOnboardingFlowCompletedAsync}; +export {onServerDataReady, isOnboardingFlowCompleted};