Skip to content

Commit

Permalink
fixing next button text
Browse files Browse the repository at this point in the history
  • Loading branch information
windoverwater committed Mar 5, 2024
1 parent de79af6 commit abb9877
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion voting.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,11 @@ <h3>Your RCV selection:</h3>
// Setup the bottomSection - this supplies simply "next context/checkout"
// navigation. Note - the voter's selection is saved when navigating away
// from the page - hence it needs _this_ thisContestValue.
setupNextButtonListener("Next contest (" + nextContest + ")", nextContest, thisContestValue);
let nextButtonString = "Go to next contest";
if (nextContest >= numberOfContests) {
nextButtonString = "Go to checkout";
}
setupNextButtonListener(nextButtonString, nextContest, thisContestValue);
}

// If here, this is the first contest
Expand Down

0 comments on commit abb9877

Please sign in to comment.