From 162b081858e8a97bac9de265f9744574d1121ad6 Mon Sep 17 00:00:00 2001 From: gorkem-bwl Date: Fri, 16 Jan 2026 15:26:34 -0500 Subject: [PATCH] Fix formatting --- .../Details/Components/PageSpeedStatusBoxes/index.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/PageSpeed/Details/Components/PageSpeedStatusBoxes/index.jsx b/client/src/Pages/PageSpeed/Details/Components/PageSpeedStatusBoxes/index.jsx index 0b5ce5f3e..13d7edf8c 100644 --- a/client/src/Pages/PageSpeed/Details/Components/PageSpeedStatusBoxes/index.jsx +++ b/client/src/Pages/PageSpeed/Details/Components/PageSpeedStatusBoxes/index.jsx @@ -10,12 +10,16 @@ const PageSpeedStatusBoxes = ({ shouldRender, monitor }) => { // Calculate time since first check (checks since) const checks = monitor?.checks || []; const oldestCheck = checks.length > 0 ? checks[checks.length - 1] : null; - const oldestCheckTime = oldestCheck?.createdAt ? new Date(oldestCheck.createdAt).getTime() : null; + const oldestCheckTime = oldestCheck?.createdAt + ? new Date(oldestCheck.createdAt).getTime() + : null; const checksSinceDuration = oldestCheckTime ? Date.now() - oldestCheckTime : 0; // Calculate time since last check const latestCheck = checks.length > 0 ? checks[0] : null; - const latestCheckTime = latestCheck?.createdAt ? new Date(latestCheck.createdAt).getTime() : null; + const latestCheckTime = latestCheck?.createdAt + ? new Date(latestCheck.createdAt).getTime() + : null; const lastCheckDuration = latestCheckTime ? Date.now() - latestCheckTime : 0; const uptimeDuration = getHumanReadableDuration(checksSinceDuration);