From f5de5fb23efb717d86c3efc5df90fdc51619bb86 Mon Sep 17 00:00:00 2001 From: AMay Date: Sat, 24 Oct 2026 02:41:31 -0500 Subject: [PATCH] Use regular match data --- src/Components/Pool.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Pool.tsx b/src/Components/Pool.tsx index ec06795..6b91516 100644 --- a/src/Components/Pool.tsx +++ b/src/Components/Pool.tsx @@ -35,7 +35,7 @@ export function Pool({userRole,name,matches,players,footer,cab}){ }} onBlur={(ev)=>{ fetch("api/updateScore",{ method:"POST", - body:{match_id:`${match[0]}_${match[1]}`,ex1:ev.currentTarget.value,ex2:prevMatchData[ind][1]} + body:{match_id:`${match[0]}_${match[1]}`,ex1:ev.currentTarget.value,ex2:matchData[ind][1]} }) }} defaultValue={matchData[ind][0]} className="border border-black" type="number" min={0} max={9999}/>:<>{matchData[ind][0]==0?"-":matchData[ind][0]}} vs @@ -46,7 +46,7 @@ export function Pool({userRole,name,matches,players,footer,cab}){ }} onBlur={(ev)=>{ fetch("api/updateScore",{ method:"POST", - body:{match_id:`${match[0]}_${match[1]}`,ex1:prevMatchData[ind][0],ex2:ev.currentTarget.value} + body:{match_id:`${match[0]}_${match[1]}`,ex1:matchData[ind][0],ex2:ev.currentTarget.value} }) }} defaultValue={matchData[ind][1]} className="border border-black" type="number" min={0} max={9999}/>:<>{matchData[ind][1]==0?"-":matchData[ind][1]}} 12?"text-xs ":GetPlayer(match[1]).length>8&&"text-sm ")+"border border-gray-300 p-1"}>{GetPlayer(match[1])} {Number.isInteger(match[1])&&({match[1]})}