This commit is contained in:
IGNY8 VPS (Salman)
2025-12-08 08:52:44 +00:00
parent 3f2879d269
commit 8231c499c2
8 changed files with 215 additions and 90 deletions

View File

@@ -134,6 +134,7 @@ export const useAuthStore = create<AuthState>()(
body: JSON.stringify({
...registerData,
password_confirm: registerData.password, // Add password_confirm
plan_slug: registerData.plan_slug,
}),
});
@@ -161,6 +162,7 @@ export const useAuthStore = create<AuthState>()(
isAuthenticated: true,
loading: false
});
return userData;
} catch (error: any) {
// ALWAYS reset loading on error - critical to prevent stuck state
set({ loading: false });