From 95e5a207136a6bc10ff4e19b92d5be66cc75fc4b Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 20 Apr 2022 08:35:13 -0700 Subject: [PATCH] feat(explorer): show orange for 25-50 percent ping loss (#24530) --- explorer/src/components/SolanaPingCard.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/explorer/src/components/SolanaPingCard.tsx b/explorer/src/components/SolanaPingCard.tsx index 1d1463bffa..cb9ec95e9b 100644 --- a/explorer/src/components/SolanaPingCard.tsx +++ b/explorer/src/components/SolanaPingCard.tsx @@ -180,6 +180,11 @@ function PingBarChart({ pingInfo }: { pingInfo: PingRollupInfo }) { if (val.submitted === 0) { return "#08a274"; } + + if (val.loss >= 0.25 && val.loss <= 0.5) { + return "#FFA500"; + } + return val.loss > 0.5 ? "#f00" : "#00D192"; }; const chartData: Chart.ChartData = {