fix: Sending wrong error value to the user

This commit is contained in:
April Hall 2025-02-10 08:04:47 -05:00
parent ce6e48db2b
commit 806a6ac31e
No known key found for this signature in database
GPG Key ID: A49AC35CB186266C
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export const actions = {
status: 401,
});
} else {
return setError(form, 'password', (e as APIError).body.message as string);
return setError(form, 'password', (e as APIError).message as string);
}
}

View File

@ -57,7 +57,7 @@ export const actions = {
});
}
} catch (e) {
return setError(form, 'verify', (e as APIError).body.message as string);
return setError(form, 'verify', (e as APIError).message as string);
}
return message(form, 'Successfuly signed in.');