Skip to content

Commit

Permalink
fix: ensure we merge wallet account data with keypair account
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Jul 3, 2024
1 parent 6c064a5 commit 08749b9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/status_im/contexts/wallet/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,12 @@
(-> (apply dissoc existing-keypairs-by-id removed-keypair-ids)
(merge updated-keypairs-by-id)))
(assoc-in [:wallet :accounts]
(-> (apply dissoc
existing-accounts-by-address
(into removed-account-addresses old-account-addresses))
(merge updated-accounts-by-address))))}
(merge-with merge
(apply dissoc
existing-accounts-by-address
(into removed-account-addresses
old-account-addresses))
updated-accounts-by-address)))}
(seq new-account-addresses)
(assoc :fx
(mapcat (fn [address]
Expand Down

0 comments on commit 08749b9

Please sign in to comment.