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`); }