From 45d1bad57defbe5c3bd1ae1110fef50c9d40204e Mon Sep 17 00:00:00 2001 From: Filip Solecki Date: Tue, 23 Apr 2024 17:39:33 +0200 Subject: [PATCH] Update functions names --- src/libs/actions/Welcome.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/actions/Welcome.ts b/src/libs/actions/Welcome.ts index 38d113160945..d723d3a5cd6d 100644 --- a/src/libs/actions/Welcome.ts +++ b/src/libs/actions/Welcome.ts @@ -44,9 +44,9 @@ function isOnboardingFlowCompleted({onCompleted, onNotCompleted}: HasCompletedOn } /** - * Check if onboarding object is not undefined so user can see onboarding modal + * Check if onboarding data is ready in order to check if the user has completed onboarding or not */ -function checkOnboardingReady() { +function checkOnboardingDataReady() { if (onboarding === undefined) { return; } @@ -57,7 +57,7 @@ function checkOnboardingReady() { /** * Check if user dismissed modal and if report data are loaded */ -function checkServerReady() { +function checkServerDataReady() { if (isLoadingReportData || hasDismissedModal === undefined) { return; } @@ -79,7 +79,7 @@ Onyx.connect({ onboarding = value; - checkOnboardingReady(); + checkOnboardingDataReady(); }, }); @@ -89,7 +89,7 @@ Onyx.connect({ callback: (value) => { hasDismissedModal = value ?? false; - checkServerReady(); + checkServerDataReady(); }, }); @@ -98,7 +98,7 @@ Onyx.connect({ initWithStoredValues: false, callback: (value) => { isLoadingReportData = value ?? false; - checkServerReady(); + checkServerDataReady(); }, });