From a05b34ffa717eab2dc339fa92d13b5003ba04b4b Mon Sep 17 00:00:00 2001 From: Satoshi Dev <162055292+0xsatoshi99@users.noreply.github.com> Date: Wed, 14 Jan 2026 15:22:56 +0100 Subject: [PATCH] fix: correct ping display logic for upside-down mode Change from showing ping for both UP and DOWN in upside-down mode to showing ping only for the successful status: - Normal mode: show ping when status === UP - Upside-down mode: show ping when status === DOWN This prevents the green up line from overlaying on top of the red down marker in upside-down mode. --- src/components/PingChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PingChart.vue b/src/components/PingChart.vue index 1eeaed5f7..73d86690e 100644 --- a/src/components/PingChart.vue +++ b/src/components/PingChart.vue @@ -391,7 +391,7 @@ export default { pingData.push({ x, - y: (beat.status === UP || (beat.status === DOWN && isUpsideDown)) ? beat.ping : null, + y: (isUpsideDown ? beat.status === DOWN : beat.status === UP) ? beat.ping : null, }); downData.push({ x,