From 7f30ed561bc4bbffb9edd6f9f4044d691b2eb42a Mon Sep 17 00:00:00 2001 From: Kee Jefferys Date: Mon, 30 Oct 2023 15:08:01 +1100 Subject: [PATCH] fix: update usage of undefined --- ts/mains/main_renderer.tsx | 2 +- ts/themes/SessionTheme.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {