Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/context/App.test.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -290,7 +290,7 @@ describe('context/App.tsx', () =>{
participating: true,
playSound: true,
showNotifications: true,
colors: false,
colors: null,
markAsDoneOnOpen: false,
},
);
Expand DownExpand Up@@ -328,7 +328,7 @@ describe('context/App.tsx', () =>{
participating: false,
playSound: true,
showNotifications: true,
colors: false,
colors: null,
markAsDoneOnOpen: false,
},
);
Expand Down
2 changes: 1 addition & 1 deletion src/context/App.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,7 +36,7 @@ export const defaultSettings: SettingsState ={
showNotifications: true,
openAtStartup: false,
appearance: Appearance.SYSTEM,
colors: false,
colors: null,
markAsDoneOnOpen: false,
};

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useNotifications.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -104,7 +104,7 @@ export const useNotifications = (colors: boolean): NotificationsState =>{
]
: [...enterpriseNotifications];

if (!colors){
if (colors === false){
setNotifications(data);
triggerNativeNotifications(
notifications,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ export interface SettingsState{
showNotifications: boolean;
openAtStartup: boolean;
appearance: Appearance;
colors: boolean;
colors: boolean | null;
markAsDoneOnOpen: boolean;
}

Expand Down