fix: codestats null err
All checks were successful
Deploy Blog / deploy (push) Successful in 2m1s

This commit is contained in:
Thomas Bishop 2026-01-01 10:20:32 +00:00
parent 2e7baaf393
commit ab877ac96d

View file

@ -21,8 +21,8 @@ const CodeStats = () => {
const os = data?.operating_systems
const osMetric = os ? (
<div className="text-sm">
{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}
</div>
) : (
"Error"