From 55152cd33a0b20a299874a1003e18a661ba9a084 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Tue, 6 Aug 2019 16:09:53 +1000 Subject: [PATCH] Catch this little rascal. Profile names should update consistently now --- js/models/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {