fix(core): handling error message when sending verify change email (#5894)

This commit is contained in:
JimmFly
2024-02-26 08:32:48 +00:00
parent d3360f655e
commit e9f9eea80c
2 changed files with 8 additions and 0 deletions

View File

@@ -78,6 +78,13 @@ export const AuthPage = (): ReactElement | null => {
});
}
if (!res?.sendVerifyChangeEmail) {
pushNotification({
title: t['com.affine.auth.sent.change.email.fail'](),
type: 'error',
});
}
return !!res?.sendVerifyChangeEmail;
},
[pushNotification, searchParams, sendVerifyChangeEmail, t]