Revert "sadasd"

This reverts commit 9f85ce4f52.
This commit is contained in:
alorig
2025-12-09 00:26:01 +05:00
parent 9f85ce4f52
commit 92d16c76a7
11 changed files with 198 additions and 774 deletions

View File

@@ -28,11 +28,6 @@ export default function SignInForm() {
try {
await login(email, password);
// CRITICAL: Wait for auth state to persist to localStorage before navigating
// Increased to 500ms to ensure Zustand persist middleware completes
await new Promise(resolve => setTimeout(resolve, 500));
// Redirect to the page user was trying to access, or home
const from = (location.state as any)?.from?.pathname || "/";
navigate(from, { replace: true });