fix: update usage of undefined
This commit is contained in:
parent
5571471bbe
commit
7f30ed561b
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ export async function ensureThemeConsistency(): Promise<boolean> {
|
|||
theme: newTheme,
|
||||
mainWindow: true,
|
||||
usePrimaryColor: true,
|
||||
dispatch: window?.inboxStore?.dispatch || undefined,
|
||||
dispatch: window?.inboxStore?.dispatch,
|
||||
});
|
||||
resolve(true); // Theme was switched
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue