fix: home
CI / build (push) Has been cancelled
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-06-13 22:39:30 +03:00
parent e481c8b3a0
commit 6367cdae56
5 changed files with 526 additions and 332 deletions
+2 -3
View File
@@ -6,7 +6,6 @@ import type {
LoginCredentials,
RegisterData,
OrganizationCreateData,
OrganizationMember,
} from "../types/auth.types";
export const useAuth = () => {
@@ -24,7 +23,7 @@ export const useAuth = () => {
const orgs = await request(() => authService.getOrganizations());
if (orgs && orgs.length > 0) {
authService.saveOrganization(orgs[0]);
navigate("/home");
navigate("/");
} else {
navigate("/create-organization");
}
@@ -58,7 +57,7 @@ export const useAuth = () => {
if (result) {
authService.saveOrganization(result);
navigate("/home");
navigate("/");
} else if (error) {
setAuthError(error);
}