SharedPreferences: fixes so UI Theme can be set back to Default (#24628)
This commit is contained in:
@@ -100,7 +100,7 @@ export class SharedPreferences extends PureComponent<Props, State> {
|
||||
};
|
||||
|
||||
onThemeChanged = (theme: SelectableValue<string>) => {
|
||||
if (!theme || !theme.value) {
|
||||
if (!theme || typeof theme.value !== 'string') {
|
||||
return;
|
||||
}
|
||||
this.setState({ theme: theme.value });
|
||||
|
||||
Reference in New Issue
Block a user