Unverified Commit cd3a98c0 authored by THELOSTSOUL's avatar THELOSTSOUL Committed by GitHub

fix: change use-set priority (#2760)

The user settings(locale, appearance) are not in use when restart broswer
parent a22ad901
......@@ -45,8 +45,8 @@ export const initialGlobalState = async () => {
},
};
defaultGlobalState.locale =
defaultGlobalState.locale || defaultGlobalState.systemStatus.customizedProfile.locale || findNearestLanguageMatch(i18n.language);
defaultGlobalState.appearance = defaultGlobalState.appearance || defaultGlobalState.systemStatus.customizedProfile.appearance;
defaultGlobalState.systemStatus.customizedProfile.locale || defaultGlobalState.locale || findNearestLanguageMatch(i18n.language);
defaultGlobalState.appearance = defaultGlobalState.systemStatus.customizedProfile.appearance || defaultGlobalState.appearance;
}
store.dispatch(setGlobalState(defaultGlobalState));
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment