fix(@desktop/wallet): no notification after deleting keyapir
Fixes: #11866
This commit is contained in:
parent
52fed9d5c2
commit
7a1500a365
|
@ -405,8 +405,9 @@ proc deleteKeypair*(self: Service, keyUid: string) =
|
||||||
error "status-go error", procName="deleteKeypair", errCode=response.error.code, errDesription=response.error.message
|
error "status-go error", procName="deleteKeypair", errCode=response.error.code, errDesription=response.error.message
|
||||||
return
|
return
|
||||||
self.updateAccountsPositions()
|
self.updateAccountsPositions()
|
||||||
for acc in kp.accounts:
|
let addresses = kp.accounts.map(a => a.address)
|
||||||
self.removeAccountFromLocalStoreAndNotify(acc.address)
|
for address in addresses:
|
||||||
|
self.removeAccountFromLocalStoreAndNotify(address)
|
||||||
self.events.emit(SIGNAL_KEYPAIR_DELETED, KeypairArgs(keyPairName: kp.name))
|
self.events.emit(SIGNAL_KEYPAIR_DELETED, KeypairArgs(keyPairName: kp.name))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error "error: ", procName="deleteKeypair", errName = e.name, errDesription = e.msg
|
error "error: ", procName="deleteKeypair", errName = e.name, errDesription = e.msg
|
||||||
|
|
Loading…
Reference in New Issue