Skip to content

Commit

Permalink
fix: swap scoreA and scoreB
Browse files Browse the repository at this point in the history
  • Loading branch information
punchanabu committed Oct 15, 2024
1 parent 883ab3d commit a3f1f93
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/match/MatchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ export const Matchbar = (props: {
scoreA = 50;
scoreB = 50;
} else {
const percentA = (scoreA / totalScore) * 100;

scoreA = Math.round(percentA);
scoreB = 100 - scoreA;
const percentB = (scoreA / totalScore) * 100;
scoreB = Math.round(percentB);
scoreA = 100 - scoreB;
}

return (
Expand Down

0 comments on commit a3f1f93

Please sign in to comment.