summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-06-09 12:12:32 -0300
committerJoram Wilander <jwawilander@gmail.com>2016-06-09 11:12:32 -0400
commit6f490b49c2a01a6a873f8fa781a796b6f697ced1 (patch)
tree6b70f20f8f544ee63d5d2b19d89763c5548a279e /webapp
parenteefde7d7b6231d2ba143aa496f698d0c9f758bdd (diff)
downloadchat-6f490b49c2a01a6a873f8fa781a796b6f697ced1.tar.gz
chat-6f490b49c2a01a6a873f8fa781a796b6f697ced1.tar.bz2
chat-6f490b49c2a01a6a873f8fa781a796b6f697ced1.zip
PLT-3254 Javascript error and can't login with Spanish Client language (#3298)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/stores/user_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/stores/user_store.jsx b/webapp/stores/user_store.jsx
index f57ecf1cd..218a7f1db 100644
--- a/webapp/stores/user_store.jsx
+++ b/webapp/stores/user_store.jsx
@@ -104,7 +104,7 @@ class UserStoreClass extends EventEmitter {
this.currentUserId = user.id;
global.window.mm_current_user_id = this.currentUserId;
if (LocalizationStore.getLocale() !== user.locale) {
- GlobalActions.newLocalizationSelected(user.locale);
+ setTimeout(() => GlobalActions.newLocalizationSelected(user.locale), 0);
}
}