[fix 8054] network in app-db is not always correct

- when login in after a different account using a different network
the new account inherited the network from the previous one
- this fixes it by using the account network when initializing app-db
instead of reusing current network

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-04-26 16:45:10 +02:00
parent aea761f314
commit d383051737
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 1 additions and 2 deletions

View File

@ -188,7 +188,7 @@
:accounts/accounts accounts
:mailserver/mailservers mailservers
:network-status network-status
:network network
:network account-network
:network/type (:network/type db)
:chain (ethereum/network->chain-name account-network)
:universal-links/url url
@ -270,4 +270,3 @@
(re-frame/reg-fx
:init/reset-account-data
reset-account-data!)