Skip to content

Commit

Permalink
Bug fix: score reset to zero when run is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMuellenator authored Sep 5, 2024
1 parent a2ef40a commit 8f7a4b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ $(document).ready(function () {
});

function restart() {
score = 0;
NewLine(logo, false);
accountA = data[Math.floor(Math.random() * data.length)];
accountB = data[Math.floor(Math.random() * data.length)];
Expand Down

0 comments on commit 8f7a4b4

Please sign in to comment.