From 6b63abc3d6c9a3aaba53bb100a6703fa89929e68 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Sun, 20 Oct 2024 15:47:50 +0200 Subject: [PATCH] vinvoor: small refactor --- vinvoor/src/leaderboard/LeaderboardTableBody.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vinvoor/src/leaderboard/LeaderboardTableBody.tsx b/vinvoor/src/leaderboard/LeaderboardTableBody.tsx index 02b20eb..a7f2403 100644 --- a/vinvoor/src/leaderboard/LeaderboardTableBody.tsx +++ b/vinvoor/src/leaderboard/LeaderboardTableBody.tsx @@ -78,8 +78,8 @@ const getPosition = (position: number) => { } }; -const getScanned = (scanned: boolean) => { - if (scanned) +const getScanned = (checkedIn: boolean) => { + if (checkedIn) return ; return <>; @@ -94,7 +94,7 @@ const getCell = ( return getPositionChange(row[headCell.id]); case "position": return getPosition(row[headCell.id]); - case "scanned": + case "checkedIn": return getScanned(row[headCell.id]); default: return (