From ab877ac96d3d0ff5caa93b55ebabaae894ad2c97 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 1 Jan 2026 10:20:32 +0000 Subject: [PATCH] fix: codestats null err --- src/containers/CodeStats.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/CodeStats.jsx b/src/containers/CodeStats.jsx index f77091f..9cdc912 100644 --- a/src/containers/CodeStats.jsx +++ b/src/containers/CodeStats.jsx @@ -21,8 +21,8 @@ const CodeStats = () => { const os = data?.operating_systems const osMetric = os ? (
- {os[0]?.key}: {convertSeconds(os[0].total)}, {os[1]?.key}:{" "} - {convertSeconds(os[1].total)} + {os[0]?.key}: {convertSeconds(os[0]?.total)}, {os[1]?.key}:{" "} + {convertSeconds(os[1]?.total || 0) || null}
) : ( "Error"