From d3830517379f809b4a953c7d0eab063783bbbb90 Mon Sep 17 00:00:00 2001 From: yenda Date: Fri, 26 Apr 2019 16:45:10 +0200 Subject: [PATCH] [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 --- src/status_im/init/core.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/status_im/init/core.cljs b/src/status_im/init/core.cljs index 9a9b47a997..bb2164af88 100644 --- a/src/status_im/init/core.cljs +++ b/src/status_im/init/core.cljs @@ -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!) -