We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e891ef9 commit a91dee2Copy full SHA for a91dee2
web/components/layout/auth/authLayout.tsx
@@ -88,6 +88,11 @@ const AuthLayout = (props: AuthLayoutProps) => {
88
);
89
const orgContext = useOrg();
90
91
+ useEffect(() => {
92
+ if (orgContext?.currentOrg?.has_onboarded === false) {
93
+ router.push("/onboarding");
94
+ }
95
+ }, [orgContext?.currentOrg?.has_onboarded]);
96
97
const banner = useMemo((): BannerType | null => {
98
const activeBanner = alertBanners?.data?.find((x) => x.active);
0 commit comments