Releasing new design #161
@ -19,6 +19,7 @@ import { setRelayMapAction } from '../../../store/actions'
|
|||||||
import { RelayConnectionState, RelayFee, RelayInfo } from '../../../types'
|
import { RelayConnectionState, RelayFee, RelayInfo } from '../../../types'
|
||||||
import {
|
import {
|
||||||
capitalizeFirstLetter,
|
capitalizeFirstLetter,
|
||||||
|
compareObjects,
|
||||||
getRelayInfo,
|
getRelayInfo,
|
||||||
getRelayMap,
|
getRelayMap,
|
||||||
hexToNpub,
|
hexToNpub,
|
||||||
@ -43,7 +44,9 @@ export const RelaysPage = () => {
|
|||||||
useDidMount(() => {
|
useDidMount(() => {
|
||||||
if (usersPubkey) {
|
if (usersPubkey) {
|
||||||
getRelayMap(usersPubkey).then((newRelayMap) => {
|
getRelayMap(usersPubkey).then((newRelayMap) => {
|
||||||
|
if (!compareObjects(relayMap, newRelayMap.map)) {
|
||||||
dispatch(setRelayMapAction(newRelayMap.map))
|
dispatch(setRelayMapAction(newRelayMap.map))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user