diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 1e5174b..e93fd86 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -12,7 +12,7 @@ const LoginPage: NextPage = () => { async function onSubmit(data: FormProps) { const response = await fetch(`/api/check?key=${data.token}`); - + if (response.status === 200) { setError(false); router.push({ pathname: '/', query: { key: data.token } }).then(); @@ -21,8 +21,8 @@ const LoginPage: NextPage = () => { return ( -
-
+
+