Skip to content

Commit

Permalink
Update functions names
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Apr 23, 2024
1 parent 811d2f1 commit 45d1bad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libs/actions/Welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -79,7 +79,7 @@ Onyx.connect({

onboarding = value;

checkOnboardingReady();
checkOnboardingDataReady();
},
});

Expand All @@ -89,7 +89,7 @@ Onyx.connect({
callback: (value) => {
hasDismissedModal = value ?? false;

checkServerReady();
checkServerDataReady();
},
});

Expand All @@ -98,7 +98,7 @@ Onyx.connect({
initWithStoredValues: false,
callback: (value) => {
isLoadingReportData = value ?? false;
checkServerReady();
checkServerDataReady();
},
});

Expand Down

0 comments on commit 45d1bad

Please sign in to comment.