Skip to content

Commit

Permalink
Use pickorder to determine amount of picks.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikpe authored Apr 26, 2024
1 parent 22e293f commit 12fd6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Board.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Board extends React.Component {
const pickRound = Math.floor(pickCount / captainTeams.length);
const pickNumber = 1 + (pickCount % captainTeams.length);

const pickLimit = captainTeams.length * 4;
const pickLimit = pickOrder.length;
const draftStatus = pickCount >= pickLimit ? "completed" : "in-progress";

if (!hasUsedConfetti && "completed" === draftStatus) {
Expand Down

0 comments on commit 12fd6e1

Please sign in to comment.