type caught error to any

This commit is contained in:
m5r
2021-08-28 02:05:44 +08:00
parent 8765d2b7e5
commit 43f89216ae
12 changed files with 13 additions and 13 deletions

View File

@ -27,7 +27,7 @@ const ForgotPasswordPage: BlitzPage = () => {
onSubmit={async (values) => {
try {
await forgotPasswordMutation(values);
} catch (error) {
} catch (error: any) {
return {
[FORM_ERROR]: "Sorry, we had an unexpected error. Please try again.",
};

View File

@ -34,7 +34,7 @@ const ResetPasswordPage: BlitzPage = () => {
onSubmit={async (values) => {
try {
await resetPasswordMutation(values);
} catch (error) {
} catch (error: any) {
if (error.name === "ResetPasswordError") {
return {
[FORM_ERROR]: error.message,