From ec3e234dbec526bda61eac8e98dfc5488dd764d0 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vinvoor/src/leaderboard/LeaderboardTableBody.tsx b/vinvoor/src/leaderboard/LeaderboardTableBody.tsx index 065aea4..997817c 100644 --- a/vinvoor/src/leaderboard/LeaderboardTableBody.tsx +++ b/vinvoor/src/leaderboard/LeaderboardTableBody.tsx @@ -82,8 +82,13 @@ function getPosition(position: number) { } } +<<<<<<< HEAD function getScanned(scanned: boolean) { if (scanned) +======= +const getScanned = (checkedIn: boolean) => { + if (checkedIn) +>>>>>>> 6b63abc (vinvoor: small refactor) return ; return <>; @@ -95,7 +100,7 @@ function getCell(row: LeaderboardItem, headCell: TableHeadCell) return getPositionChange(row[headCell.id]); case "position": return getPosition(row[headCell.id]); - case "scanned": + case "checkedIn": return getScanned(row[headCell.id]); default: return (