diff --git a/ts/mains/main_renderer.tsx b/ts/mains/main_renderer.tsx index 9c737f98e..74e108362 100644 --- a/ts/mains/main_renderer.tsx +++ b/ts/mains/main_renderer.tsx @@ -123,7 +123,7 @@ ipcRenderer.on('native-theme-update', (__unused, shouldUseDarkColors) => { theme: newTheme, mainWindow: true, usePrimaryColor: true, - dispatch: window?.inboxStore?.dispatch || undefined, + dispatch: window?.inboxStore?.dispatch, }); } } diff --git a/ts/themes/SessionTheme.tsx b/ts/themes/SessionTheme.tsx index 7e8331058..3337df271 100644 --- a/ts/themes/SessionTheme.tsx +++ b/ts/themes/SessionTheme.tsx @@ -34,7 +34,7 @@ export async function ensureThemeConsistency(): Promise { theme: newTheme, mainWindow: true, usePrimaryColor: true, - dispatch: window?.inboxStore?.dispatch || undefined, + dispatch: window?.inboxStore?.dispatch, }); resolve(true); // Theme was switched } else {