mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +00:00
Fix store saving
This commit is contained in:
parent
2c9de47f78
commit
3952380363
@ -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]) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user