Skip to content

Commit

Permalink
Drop Async suffix from function name
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Feb 19, 2024
1 parent 011e5fd commit 22a6bd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/Welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -187,4 +187,4 @@ Onyx.connect({
},
});

export {onServerDataReady, isOnboardingFlowCompletedAsync};
export {onServerDataReady, isOnboardingFlowCompleted};

0 comments on commit 22a6bd6

Please sign in to comment.