Move user to create org screen on no org

This commit is contained in:
Tuan Dang
2025-02-17 09:20:19 -08:00
parent b2a680ebd7
commit 5148435f5f
7 changed files with 46 additions and 47 deletions
@@ -27,7 +27,7 @@ export const Route = createFileRoute("/_authenticate")({
});
});
if (!data.organizationId && location.pathname !== ROUTE_PATHS.Auth.PasswordSetupPage.path) {
if (!data.organizationId && location.pathname !== ROUTE_PATHS.Auth.PasswordSetupPage.path && location.pathname !== "/organization/none") {
throw redirect({ to: "/login/select-organization" });
}