From a5313bb17d7964d21a718c673e242f97bb449604 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Tue, 11 Jun 2024 23:22:00 +0700 Subject: [PATCH] fix: Wrong color display when uptime is 80 & 98 The UI display red color if the uptime value is exactly 80 and 98 percent. Use `>=` fix this issue. --- frontend/src/lib/components/datatables/xmr/UptimeCell.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/datatables/xmr/UptimeCell.svelte b/frontend/src/lib/components/datatables/xmr/UptimeCell.svelte index 51ff44e..4fede5f 100644 --- a/frontend/src/lib/components/datatables/xmr/UptimeCell.svelte +++ b/frontend/src/lib/components/datatables/xmr/UptimeCell.svelte @@ -2,9 +2,9 @@ export let uptime: number; -{#if uptime > 98} +{#if uptime >= 98} {uptime}% -{:else if uptime < 98 && uptime > 80} +{:else if uptime < 98 && uptime >= 80} {uptime}% {:else if uptime < 80 && uptime > 75} {uptime}%