Skip to content

Commit a91dee2

Browse files
committed
fix: brought back has_onboarded check
1 parent e891ef9 commit a91dee2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/components/layout/auth/authLayout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ const AuthLayout = (props: AuthLayoutProps) => {
8888
);
8989
const orgContext = useOrg();
9090

91+
useEffect(() => {
92+
if (orgContext?.currentOrg?.has_onboarded === false) {
93+
router.push("/onboarding");
94+
}
95+
}, [orgContext?.currentOrg?.has_onboarded]);
9196

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

0 commit comments

Comments
 (0)