Only update the user when editing profile (#9601)

This commit is contained in:
Keith Holliday
2017-11-30 08:19:03 -06:00
committed by GitHub
parent a097819b72
commit 6f9cbf9ca1

View File

@@ -752,7 +752,6 @@ export default {
let curVal = this.user.profile[key];
if (!curVal || this.editingProfile[key].toString() !== curVal.toString()) {
values[`profile.${key}`] = value;
this.$set(this.userLoggedIn.profile, key, value);
this.$set(this.user.profile, key, value);
}
});