mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): handling error message when sending verify change email (#5894)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user