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,
|
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…
Reference in New Issue