dasdas
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user