fix: update usage of undefined

This commit is contained in:
Kee Jefferys 2023-10-30 15:08:01 +11:00
parent 5571471bbe
commit 7f30ed561b
2 changed files with 2 additions and 2 deletions

View File

@ -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,
});
}
}

View File

@ -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 {