mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
Fix trying to in
undefined for themes
This commit is contained in:
parent
2ff9c91287
commit
63479737a8
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ export function getBaseTheme(name: string): Theme {
|
|||
return PRESETS[name]
|
||||
}
|
||||
|
||||
const themes = getState().themes
|
||||
// TODO: properly initialize `themes` in state instead of letting it be undefined
|
||||
const themes = getState().themes ?? {}
|
||||
|
||||
if (name in themes) {
|
||||
const { theme } = themes[name];
|
||||
|
|
Loading…
Reference in a new issue