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 c947cb0 commit 615170dCopy full SHA for 615170d
frontend/src/hooks/useAuth.ts
@@ -43,6 +43,10 @@ const useAuth = () => {
43
errDetail = err.message
44
}
45
46
+ if (Array.isArray(errDetail)) {
47
+ errDetail = "Something went wrong"
48
+ }
49
+
50
setError(errDetail)
51
},
52
})
frontend/src/routes/login.tsx
@@ -92,6 +92,7 @@ function Login() {
92
})}
93
placeholder="Email"
94
type="email"
95
+ required
96
/>
97
{errors.username && (
98
<FormErrorMessage>{errors.username.message}</FormErrorMessage>
@@ -103,6 +104,7 @@ function Login() {
103
104
{...register("password")}
105
type={show ? "text" : "password"}
106
placeholder="Password"
107
108
109
<InputRightElement
110
color="ui.dim"
0 commit comments