diff --git a/js/models/profile.js b/js/models/profile.js index 64f89f64b..16ab2f1da 100644 --- a/js/models/profile.js +++ b/js/models/profile.js @@ -27,7 +27,7 @@ // If we get an empty name then unset the name property // Otherwise update it const profile = storage.getLocalProfile(); - const newProfile = profile || {}; + const newProfile = { ...profile }; if (_.isEmpty(trimmed)) { delete newProfile.displayName; } else {