diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index 5fc778512..4e40b068a 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -109,13 +109,10 @@ class LokiAppDotNetServerAPI { JSON.stringify(objToSign) ); */ - let pName = profileName || ''; // You cannot use null to clear the profile name // the name key has to be set to know what value we want changed - if (pName === undefined || pName === null) { - pName = ''; - } + let pName = profileName || ''; const res = await this.serverRequest('users/me', { method: 'PATCH',