aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 3c6c24b59..ea1e71bdc 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -282,7 +282,11 @@ export default class AppStore extends Store {
282 } 282 }
283 283
284 _setLocale() { 284 _setLocale() {
285 const { locale } = this.stores.user.data; 285 let locale;
286 if (this.stores.user.isLoggedIn) {
287 locale = this.stores.user.data.locale;
288 }
289
286 290
287 if (locale && Object.prototype.hasOwnProperty.call(locales, locale) && locale !== this.locale) { 291 if (locale && Object.prototype.hasOwnProperty.call(locales, locale) && locale !== this.locale) {
288 this.locale = locale; 292 this.locale = locale;