diff --git a/dev/Settings/User/Accounts.js b/dev/Settings/User/Accounts.js index 7fec7d8ec..c84148b8b 100644 --- a/dev/Settings/User/Accounts.js +++ b/dev/Settings/User/Accounts.js @@ -69,11 +69,8 @@ class AccountsUserSettings { this.identityForDeletion(null); if (identityToRemove) { - IdentityStore.identities.remove((oIdentity) => identityToRemove === oIdentity); - - Remote.identityDelete(() => { - rl.app.accountsAndIdentities(); - }, identityToRemove.id); + IdentityStore.identities.remove(oIdentity => identityToRemove === oIdentity); + Remote.identityDelete(() => rl.app.accountsAndIdentities(), identityToRemove.id()); } } }