Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): fix notification setting error (#11194)

EYHN7fb52a97bd78
diff --git a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/notifications/index.tsx b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/notifications/index.tsx
index 1ea805b420..a88fb9d902 100644
--- a/packages/frontend/core/src/desktop/dialogs/setting/general-setting/notifications/index.tsx
+++ b/packages/frontend/core/src/desktop/dialogs/setting/general-setting/notifications/index.tsx
@@ -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 />