mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 21:34:03 +00:00
Refactor delete account algorithm to properly remove deleted account
Prior to this commit, deleted accounts would stay in the database but set to `nil`. With this change accounts are properly removed from the database when scheduled for deletion. Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
5002b4c7bb
commit
f280d5a90e
@ -274,7 +274,7 @@
|
|||||||
:on-success #()}]
|
:on-success #()}]
|
||||||
:db (-> db
|
:db (-> db
|
||||||
(assoc :multiaccount/accounts new-accounts)
|
(assoc :multiaccount/accounts new-accounts)
|
||||||
(assoc-in [:wallet :accounts deleted-address] nil))}
|
(update-in [:wallet :accounts] dissoc deleted-address))}
|
||||||
(navigation/navigate-to-cofx :wallet nil))))
|
(navigation/navigate-to-cofx :wallet nil))))
|
||||||
|
|
||||||
(fx/defn view-only-qr-scanner-result
|
(fx/defn view-only-qr-scanner-result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user