Skip to content

Commit

Permalink
Refactor delete account algorithm to properly remove deleted account
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
0x-r4bbit committed Apr 20, 2020
1 parent fee6864 commit e0cf7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status_im/wallet/accounts/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
:on-success #()}]
:db (-> db
(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))))

(fx/defn view-only-qr-scanner-result
Expand Down

0 comments on commit e0cf7bf

Please sign in to comment.