fix: unwrap to throw error
This commit is contained in:
parent
ffd21e62c9
commit
1768384ce5
@ -85,7 +85,7 @@ export default function LoginPage() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// authSlice will automatically handle the response
|
// authSlice will automatically handle the response
|
||||||
await login(formState);
|
await login(formState).unwrap();
|
||||||
navigate("/");
|
navigate("/");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const errTyped = err as { status: number | string; data: Wrap<void> };
|
const errTyped = err as { status: number | string; data: Wrap<void> };
|
||||||
|
Loading…
Reference in New Issue
Block a user