diff --git a/app/components/Sparkline/Sparkline.tsx b/app/components/Sparkline/Sparkline.tsx
index 52caef503..cb2b881ef 100644
--- a/app/components/Sparkline/Sparkline.tsx
+++ b/app/components/Sparkline/Sparkline.tsx
@@ -47,7 +47,7 @@ const Sparkline = ({
>
Date: {label}
- {payload[0].value
+ {payload[0].value || payload[0].value === 0
? `${
commifyValue ? commify(payload[0].value) : payload[0].value
} ${valueLabel}`
diff --git a/app/utils/chartUtils.ts b/app/utils/chartUtils.ts
index 034241b63..14aadd2fb 100644
--- a/app/utils/chartUtils.ts
+++ b/app/utils/chartUtils.ts
@@ -3,7 +3,11 @@ import { AnalyticsRelaysAggregated, AnalyticsRelaysTotal } from "~/models/dwh/sd
export const getTotalErrors = (
aggregatedData: AnalyticsRelaysAggregated | AnalyticsRelaysTotal,
) => {
- if (!aggregatedData || !aggregatedData.rateError || !aggregatedData.countTotal) {
+ if (
+ !aggregatedData ||
+ !aggregatedData.countTotal ||
+ (!aggregatedData.rateError && aggregatedData?.rateError !== 0)
+ ) {
return null
}