Skip to content

Commit

Permalink
Fix unforced error and double fault buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankay committed Nov 17, 2023
1 parent e5bb7a4 commit 48cc904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ <h2>Tennis Score Tracker</h2>
}

function addUnforcedError() {
unforcedErrorPoints.push(cumulativePoints.length + 1); // Fix indexing
unforcedErrorPoints.push(cumulativePoints.length); // Fix indexing
updateGraph();
}

function addDoubleFault() {
doubleFaultPoints.push(cumulativePoints.length + 1); // Fix indexing
doubleFaultPoints.push(cumulativePoints.length); // Fix indexing
updateGraph();
}

Expand Down

0 comments on commit 48cc904

Please sign in to comment.