fix(Relays): fixed relay map state
This commit is contained in:
parent
3b704d2500
commit
0280ebade5
@ -71,6 +71,12 @@ export const RelaysPage = () => {
|
|||||||
}
|
}
|
||||||
}, [relaysInfo, relaysState?.info])
|
}, [relaysInfo, relaysState?.info])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!compareObjects(relayMap, relaysState?.map)) {
|
||||||
|
setRelayMap(relaysState?.map)
|
||||||
|
}
|
||||||
|
}, [relayMap, relaysState?.map])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let isMounted = false
|
let isMounted = false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user