mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix(settings): when changing language, reload page entirely, fixes #9904
This commit is contained in:
parent
54bee67e03
commit
c5a497ef91
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ export default {
|
|||
const newLang = e.target.value;
|
||||
this.user.preferences.language = newLang;
|
||||
await this.set('language');
|
||||
setTimeout(() => window.location.href = '/');
|
||||
setTimeout(() => window.location.reload(true));
|
||||
},
|
||||
async changeUser (attribute, updates) {
|
||||
await axios.put(`/api/v3/user/auth/update-${attribute}`, updates);
|
||||
|
|
|
|||
Loading…
Reference in a new issue