mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): fix notification setting error (#11194)
This commit is contained in:
@@ -28,7 +28,6 @@ export const NotificationSettings = () => {
|
||||
const error = useLiveData(userSettingsService.error$);
|
||||
const errorMessage = useMemo(() => {
|
||||
if (error) {
|
||||
console.log('error', error);
|
||||
const userFriendlyError = UserFriendlyError.fromAny(error);
|
||||
return t[`error.${userFriendlyError.name}`](userFriendlyError.data);
|
||||
}
|
||||
@@ -65,7 +64,7 @@ export const NotificationSettings = () => {
|
||||
<SettingWrapper
|
||||
title={t['com.affine.setting.notifications.email.title']()}
|
||||
>
|
||||
{errorMessage && (
|
||||
{!userSettings && errorMessage && (
|
||||
<>
|
||||
<div className={styles.errorMessage}>{errorMessage}</div>
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user