show relays as healthy if heartbeat is null

This commit is contained in:
x032205
2025-10-10 14:57:09 -04:00
parent 425a883662
commit bfbd1d1f91

View File

@@ -47,7 +47,7 @@ const RelayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {
const now = new Date();
const oneHourAgo = new Date(now.getTime() - 60 * 60 * 1000);
const isHealthy = heartbeatDate && heartbeatDate >= oneHourAgo;
const isHealthy = !heartbeatDate || heartbeatDate >= oneHourAgo;
const tooltipContent = heartbeatDate
? `Last heartbeat: ${heartbeatDate.toLocaleString()}`
: "No heartbeat data available";