Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Converted float to int in leaderboard #62

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/_root/pages/LeaderBoard2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const Leaderboard2 = () => {
{team.name}
</div>
<div className="custom-scrollbar w-full basis-1/5 overflow-auto whitespace-nowrap border-2 border-r-0 border-fluorescent-green border-opacity-50 px-2 py-3 text-center">
{team.points}
{Math.floor(team.points)}
</div>
</div>
))}
Expand Down Expand Up @@ -277,7 +277,7 @@ const Leaderboard2 = () => {
{team.name}
</div>
<div className="custom-scrollbar flex w-1/6 basis-1/6 items-center justify-center overflow-auto whitespace-nowrap border-2 border-r-0 border-fluorescent-green border-opacity-50 px-2 py-3 text-center">
{team.total_points}
{Math.floor(team.total_points)}
</div>
<div className="custom-scrollbar flex w-2/6 basis-2/6 items-center justify-center overflow-auto whitespace-nowrap border-2 border-r-0 border-fluorescent-green border-opacity-50 px-2 py-3 text-center">
{team.meta_team__name}
Expand Down
2 changes: 1 addition & 1 deletion src/_root/pages/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Leaderboard = () => {
{team.name}
</div>
<div className="custom-scrollbar w-1/5 basis-1/5 overflow-auto whitespace-nowrap border-2 border-r-0 border-fluorescent-green border-opacity-50 py-3 text-center">
{team.tpoints}
{Math.floor(team.tpoints)}
</div>
</div>
))}
Expand Down
Loading