mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-04 07:14:03 +00:00
Fix store saving
This commit is contained in:
parent
2c9de47f78
commit
3952380363
@ -138,7 +138,9 @@ function rehydrateCustomNodes(
|
|||||||
state: ConfigState['nodes']['customNodes'],
|
state: ConfigState['nodes']['customNodes'],
|
||||||
networkState: ConfigState['networks']
|
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(
|
const rehydratedCustomNodes = Object.entries(state).reduce(
|
||||||
(hydratedNodes, [customNodeId, configToHydrate]) => {
|
(hydratedNodes, [customNodeId, configToHydrate]) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user