Merge pull request #3524 from bluewave-labs/fix/streak-time

fix: tighten streak time coniditional
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-04-15 11:09:33 -07:00
commit ab7f2c42f5
1 file changed
+1 -4
@@ -25,10 +25,7 @@ export const MonitorStatBoxes = ({
}
const timeOfLastFailure = monitorStats?.timeOfLastFailure || 0;
const timeSinceLastFailure =
timeOfLastFailure > 0
? Date.now() - timeOfLastFailure
: Date.now() - new Date(monitorStats?.createdAt || 0).getTime();
const timeSinceLastFailure = timeOfLastFailure > 0 ? Date.now() - timeOfLastFailure : 0;
// Determine time since last check
const timeOfLastCheck = monitorStats?.lastCheckTimestamp || 0;