Fix notification event names and allow welcome onboarding
This commit is contained in:
@@ -9,6 +9,7 @@ type OnboardingRedirectInput = {
|
||||
remainingEvents?: number | null;
|
||||
pathname: string;
|
||||
isBillingPath: boolean;
|
||||
isWelcomePath?: boolean;
|
||||
isOnboardingDismissed?: boolean;
|
||||
isOnboardingCompleted?: boolean;
|
||||
isSuperAdmin?: boolean;
|
||||
@@ -20,6 +21,7 @@ export function resolveOnboardingRedirect({
|
||||
remainingEvents,
|
||||
pathname,
|
||||
isBillingPath,
|
||||
isWelcomePath,
|
||||
isOnboardingDismissed,
|
||||
isOnboardingCompleted,
|
||||
isSuperAdmin,
|
||||
@@ -28,6 +30,10 @@ export function resolveOnboardingRedirect({
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isWelcomePath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isOnboardingDismissed || isOnboardingCompleted) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user