From c1a4481bf297b14e1f1e0a85fc3fc59f49615a55 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Wed, 29 Nov 2023 08:59:04 +0530 Subject: [PATCH] latency badge - fix data --- jam-ui/src/components/profile/JKLatencyBadge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jam-ui/src/components/profile/JKLatencyBadge.js b/jam-ui/src/components/profile/JKLatencyBadge.js index 2cb2dbcff..468adc56d 100644 --- a/jam-ui/src/components/profile/JKLatencyBadge.js +++ b/jam-ui/src/components/profile/JKLatencyBadge.js @@ -32,11 +32,11 @@ const JKLatencyBadge = ({ latencyData, showAll }) => { useEffect(() => { if (latencyData) { - const tot = Math.round(latencyData.ars_internet_latency) + Math.round(latencyData.audio_latency); + const tot = Math.round(latencyData.ars.internet_latency) + Math.round(latencyData.audio_latency); setLatencyLabel(tot); if (showAll) { - setLatencyInfo(`${Math.round(latencyData.ars_internet_latency)}ms (Internet) + ${Math.round(latencyData.audio_latency)}ms (audio) = ${tot}ms (total) `); + setLatencyInfo(`${Math.round(latencyData.ars.internet_latency)}ms (Internet) + ${Math.round(latencyData.audio_latency)}ms (audio) = ${tot}ms (total) `); } else { setLatencyInfo(`${tot}ms`); }