Remove unneeded branch

pull/827/head^2
Ryan Tharp 6 years ago committed by GitHub
parent 6faa15d5b4
commit 14f64e3769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save