Skip to content

Commit

Permalink
vinvoor: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 20, 2024
1 parent f718563 commit 6b63abc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vinvoor/src/leaderboard/LeaderboardTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const getPosition = (position: number) => {
}
};

const getScanned = (scanned: boolean) => {
if (scanned)
const getScanned = (checkedIn: boolean) => {
if (checkedIn)
return <Chip label="Checked In" variant="outlined" color="success" />;

return <></>;
Expand All @@ -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 (
Expand Down

0 comments on commit 6b63abc

Please sign in to comment.