Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit ebccd02

Browse files
committed
fix: prevent continuous loading of onboard wizard
1 parent 35d29ac commit ebccd02

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/utils/index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,21 @@ export const businessLogin = () => {
5757
*/
5858
export function checkOnboarding(resp) {
5959
if (resp?.data.length === 0) {
60-
return "/onboard/";
60+
// return "/onboard/";
61+
return false;
6162
}
6263

6364
const onboardingChecklistTrait = resp?.data.filter(
6465
(item) => item.traitId === "onboarding_checklist"
6566
)[0].traits;
6667

67-
// Check if onboarding flow needs to be skipped
68-
if (
69-
onboardingChecklistTrait.data[0].skip_onboarding &&
70-
onboardingChecklistTrait.data[0].skip_onboarding.value === true
71-
) {
72-
return false;
73-
}
68+
// // Check if onboarding flow needs to be skipped
69+
// if (
70+
// onboardingChecklistTrait.data[0].skip_onboarding &&
71+
// onboardingChecklistTrait.data[0].skip_onboarding.value === true
72+
// ) {
73+
// return false;
74+
// }
7475

7576
const profileCompletedData =
7677
onboardingChecklistTrait.data[0].profile_completed;

0 commit comments

Comments
 (0)