Skip to content

Commit 2ddfa3b

Browse files
committed
auth layout fix
1 parent 6657021 commit 2ddfa3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/components/layout/auth/authLayout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,14 @@ const AuthLayout = (props: AuthLayoutProps) => {
101101
"/credits",
102102
];
103103

104-
const isOnAllowedPage = true;
104+
const isOnAllowedPage = allowedPagesDuringOnboarding.some((path) =>
105+
pathname.startsWith(path),
106+
);
105107

106108
if (orgContext?.currentOrg?.has_onboarded === false && !isOnAllowedPage) {
107-
router.push("/onboarding");
109+
router.push("/quickstart");
108110
}
109-
}, [orgContext?.currentOrg?.has_onboarded, pathname]);
111+
}, [orgContext?.currentOrg?.has_onboarded, pathname, router]);
110112

111113
const banner = useMemo((): BannerType | null => {
112114
const activeBanner = alertBanners?.data?.find((x) => x.active);

0 commit comments

Comments
 (0)