Skip to content

Commit

Permalink
fix last question of packet getting skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu authored Aug 3, 2023
1 parent 0cee86f commit d1335d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/singleplayer/tossups.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function advanceQuestion() {
questionNumber++;

// Go to the next packet if you reach the end of this packet
if (questionNumber >= questions.length) {
if (questionNumber > questions.length) {
if (query.packetNumbers.length === 0) {
window.alert('No more questions left');
document.getElementById('buzz').disabled = true;
Expand Down

0 comments on commit d1335d8

Please sign in to comment.