refactor: debug api connection - ping peer method

This commit is contained in:
Vojtech Simetka
2021-04-02 10:50:40 +02:00
parent 53dd4e1741
commit f949bdffc6
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function PeerTable(props: Props) {
setPeerLatency([...peerLatency, { peerId: peerId, rtt: '', loading: true }])
beeDebugApi.connectivity.ping(peerId)
.then(res => {
setPeerLatency([...peerLatency, { peerId: peerId, rtt: res.data.rtt, loading: false }])
setPeerLatency([...peerLatency, { peerId: peerId, rtt: res.rtt, loading: false }])
})
.catch(error => {
setPeerLatency([...peerLatency, { peerId: peerId, rtt: 'error', loading: false }])