From 3952380363c521fbcf10df1e35c4fe730586f848 Mon Sep 17 00:00:00 2001 From: HenryNguyen5 Date: Thu, 8 Feb 2018 18:49:24 -0500 Subject: [PATCH] Fix store saving --- common/store/configAndTokens.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/store/configAndTokens.ts b/common/store/configAndTokens.ts index 735ad5f1..ad0ce340 100644 --- a/common/store/configAndTokens.ts +++ b/common/store/configAndTokens.ts @@ -138,7 +138,9 @@ function rehydrateCustomNodes( state: ConfigState['nodes']['customNodes'], networkState: ConfigState['networks'] ) { - const networkExists = (networkId: string) => Object.keys(networkState).includes(networkId); + const networkExists = (networkId: string) => + Object.keys(networkState.customNetworks).includes(networkId) || + Object.keys(networkState.staticNetworks).includes(networkId); const rehydratedCustomNodes = Object.entries(state).reduce( (hydratedNodes, [customNodeId, configToHydrate]) => {