Skip to content

Commit 90dda14

Browse files
committed
fix: already seen/completed test
1 parent 96baccd commit 90dda14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-assets/auth0/dev-tenant/rules/onboardingChecklist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function (user, context, callback) {
115115

116116
for (let checklistTrait of onboardingChecklistTrait.data) {
117117
if (checklistTrait.onboarding_wizard != null) {
118-
if ( /* checklistTrait.onboarding_wizard.status != null || */ // any valid status indicates user has already seen onboarding wizard and needn't be shown again.
118+
if ( checklistTrait.onboarding_wizard.status !== 'pending_at_user' || // any non pending_at_user status indicates OB was either seen or completed and can be skipped
119119
checklistTrait.onboarding_wizard.skip ||// for certain signup routes skip is set to true, and thus onboarding wizard needn't be shown
120120
checklistTrait.onboarding_wizard.override === 'skip')
121121
{

0 commit comments

Comments
 (0)