Skip to content

Commit 6d752e6

Browse files
Fix: AuthForm.tsx variable declaration
Fixes the "isLogin used before declaration" error in AuthForm.tsx by ensuring proper variable initialization.
1 parent c4aa260 commit 6d752e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AuthForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next';
1111
import { RefSpringLogo } from '@/components/RefSpringLogo';
1212

1313
export const AuthForm = () => {
14-
const [isLogin, setIsLogin] = useState(isLogin);
14+
const [isLogin, setIsLogin] = useState(true);
1515
const [email, setEmail] = useState('');
1616
const [password, setPassword] = useState('');
1717
const [loading, setLoading] = useState(false);

0 commit comments

Comments
 (0)