Merge pull request #380 from BeaudanBrown/profile-fix

Catch this little rascal. Profile names should update consistently now
pull/382/head
Beaudan Campbell-Brown 6 years ago committed by GitHub
commit 98f1c8d80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@
// If we get an empty name then unset the name property // If we get an empty name then unset the name property
// Otherwise update it // Otherwise update it
const profile = storage.getLocalProfile(); const profile = storage.getLocalProfile();
const newProfile = profile || {}; const newProfile = { ...profile };
if (_.isEmpty(trimmed)) { if (_.isEmpty(trimmed)) {
delete newProfile.displayName; delete newProfile.displayName;
} else { } else {

Loading…
Cancel
Save