From 7ae78a719ebe8ccb0869c520bcc6bb7d11261bdb Mon Sep 17 00:00:00 2001 From: headpatsyou Date: Thu, 8 Jan 2026 12:47:34 +0000 Subject: [PATCH] ok we fix --- src/components/competitions/ResultsTable.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/competitions/ResultsTable.tsx b/src/components/competitions/ResultsTable.tsx index 11dec8a..2bd380c 100644 --- a/src/components/competitions/ResultsTable.tsx +++ b/src/components/competitions/ResultsTable.tsx @@ -3,7 +3,7 @@ import React, { useEffect, useMemo, useState } from "react"; type Row = Record; -const ResultCell = ({ value }: { value: string | undefined }) => { +const ResultCell = ({ value, isTotal = false }: { value: string | undefined; isTotal?: boolean }) => { if (!value) return —; const numValue = parseFloat(value); @@ -12,6 +12,12 @@ const ResultCell = ({ value }: { value: string | undefined }) => { const displayValue = isNegative ? Math.abs(numValue).toString() : value; + // For total cells, just make text bold + if (isTotal) { + return {displayValue}; + } + + // For lift attempt cells, show colored backgrounds if (isNegative) { return ( @@ -157,8 +163,8 @@ export function ResultsTable() { - - + + ))}