diff --git a/src/context/App.test.tsx b/src/context/App.test.tsx index 1c788a9ea..6f704f9f1 100644 --- a/src/context/App.test.tsx +++ b/src/context/App.test.tsx @@ -290,7 +290,7 @@ describe('context/App.tsx', () => { participating: true, playSound: true, showNotifications: true, - colors: false, + colors: null, markAsDoneOnOpen: false, }, ); @@ -328,7 +328,7 @@ describe('context/App.tsx', () => { participating: false, playSound: true, showNotifications: true, - colors: false, + colors: null, markAsDoneOnOpen: false, }, ); diff --git a/src/context/App.tsx b/src/context/App.tsx index d009a1604..b47bc8c77 100644 --- a/src/context/App.tsx +++ b/src/context/App.tsx @@ -36,7 +36,7 @@ export const defaultSettings: SettingsState = { showNotifications: true, openAtStartup: false, appearance: Appearance.SYSTEM, - colors: false, + colors: null, markAsDoneOnOpen: false, }; diff --git a/src/hooks/useNotifications.ts b/src/hooks/useNotifications.ts index 41875fb8b..602a9f185 100644 --- a/src/hooks/useNotifications.ts +++ b/src/hooks/useNotifications.ts @@ -104,7 +104,7 @@ export const useNotifications = (colors: boolean): NotificationsState => { ] : [...enterpriseNotifications]; - if (!colors) { + if (colors === false) { setNotifications(data); triggerNativeNotifications( notifications, diff --git a/src/types.ts b/src/types.ts index 5925a24f7..dc28c33a3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,7 +12,7 @@ export interface SettingsState { showNotifications: boolean; openAtStartup: boolean; appearance: Appearance; - colors: boolean; + colors: boolean | null; markAsDoneOnOpen: boolean; }