Skip to content

Commit

Permalink
vinvoor: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Nov 19, 2024
1 parent ed2226f commit ec3e234
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vinvoor/src/leaderboard/LeaderboardTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Chip label="Checked In" variant="outlined" color="success" />;

return <></>;
Expand All @@ -95,7 +100,7 @@ function getCell(row: LeaderboardItem, headCell: TableHeadCell<LeaderboardItem>)
return getPositionChange(row[headCell.id]);
case "position":
return getPosition(row[headCell.id]);
case "scanned":
case "checkedIn":
return getScanned(row[headCell.id]);
default:
return (
Expand Down

0 comments on commit ec3e234

Please sign in to comment.