fix: update usage of undefined

pull/2957/head
Kee Jefferys 1 year ago
parent 5571471bbe
commit 7f30ed561b

@ -123,7 +123,7 @@ ipcRenderer.on('native-theme-update', (__unused, shouldUseDarkColors) => {
theme: newTheme, theme: newTheme,
mainWindow: true, mainWindow: true,
usePrimaryColor: true, usePrimaryColor: true,
dispatch: window?.inboxStore?.dispatch || undefined, dispatch: window?.inboxStore?.dispatch,
}); });
} }
} }

@ -34,7 +34,7 @@ export async function ensureThemeConsistency(): Promise<boolean> {
theme: newTheme, theme: newTheme,
mainWindow: true, mainWindow: true,
usePrimaryColor: true, usePrimaryColor: true,
dispatch: window?.inboxStore?.dispatch || undefined, dispatch: window?.inboxStore?.dispatch,
}); });
resolve(true); // Theme was switched resolve(true); // Theme was switched
} else { } else {

Loading…
Cancel
Save