mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Only update the user when editing profile (#9601)
This commit is contained in:
@@ -752,7 +752,6 @@ export default {
|
|||||||
let curVal = this.user.profile[key];
|
let curVal = this.user.profile[key];
|
||||||
if (!curVal || this.editingProfile[key].toString() !== curVal.toString()) {
|
if (!curVal || this.editingProfile[key].toString() !== curVal.toString()) {
|
||||||
values[`profile.${key}`] = value;
|
values[`profile.${key}`] = value;
|
||||||
this.$set(this.userLoggedIn.profile, key, value);
|
|
||||||
this.$set(this.user.profile, key, value);
|
this.$set(this.user.profile, key, value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user