Fix appearance tab saying the wrong theme is selected

Fixes https://github.com/vector-im/riot-web/issues/14275
This commit is contained in:
Travis Ralston 2020-07-14 11:53:10 -06:00
parent 9b94bf13c8
commit 3a8b3e26ac

View file

@ -89,7 +89,7 @@ export default class AppearanceUserSettingsTab extends React.Component<IProps, I
// We have to mirror the logic from ThemeWatcher.getEffectiveTheme so we
// show the right values for things.
const themeChoice: string = SettingsStore.getValueAt(SettingLevel.ACCOUNT, "theme");
const themeChoice: string = SettingsStore.getValue("theme");
const systemThemeExplicit: boolean = SettingsStore.getValueAt(
SettingLevel.DEVICE, "use_system_theme", null, false, true);
const themeExplicit: string = SettingsStore.getValueAt(