fix nullish coallescing for uptime percetnage

This commit is contained in:
Alex Holliday
2025-03-19 12:36:20 -07:00
parent e623a28643
commit 6cb8b11f78
@@ -75,7 +75,7 @@ const ChartBoxes = ({
<Typography component="span">
{hoveredUptimeData !== null
? Math.floor(hoveredUptimeData?.avgResponseTime ?? 0)
: Math.floor(monitorData?.groupedUptimePercentage * 100 ?? 0)}
: Math.floor(monitorData?.groupedUptimePercentage ?? 0 * 100)}
<Typography component="span">
{hoveredUptimeData !== null ? " ms" : " %"}
</Typography>