fix(Relays): fixed relay map state

This commit is contained in:
Yury 2024-05-28 10:27:22 +03:00
parent 3b704d2500
commit 0280ebade5

View File

@ -71,6 +71,12 @@ export const RelaysPage = () => {
}
}, [relaysInfo, relaysState?.info])
useEffect(() => {
if (!compareObjects(relayMap, relaysState?.map)) {
setRelayMap(relaysState?.map)
}
}, [relayMap, relaysState?.map])
useEffect(() => {
let isMounted = false