We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b5d87 commit 3db1a03Copy full SHA for 3db1a03
1 file changed
components/auth/LoginForm.tsx
@@ -23,12 +23,16 @@ const LoginForm = ({ handleOpenModal }: LoginFormProps) => {
23
const router = useRouter();
24
25
const handleGithubLogin = async () => {
26
+ if (isLoading) return;
27
+ setIsLoading(true);
28
+ setError('');
29
try {
30
await signupWithGithub();
31
router.push('/');
32
} catch (err: unknown) {
- if (err instanceof Error) {
- }
33
+ setError('Github 로그인에 실패했습니다.');
34
+ } finally {
35
+ setIsLoading(false);
36
}
37
};
38
0 commit comments