Skip to content

Commit

Permalink
Merge pull request #157 from chingu-voyages/bug-150/Two-error-message…
Browse files Browse the repository at this point in the history
…s/Goodman2814

Bug 150/two error messages/goodman2814
  • Loading branch information
PaulaR-05 committed Jun 7, 2023
2 parents a49f526 + 6a3eb96 commit 1bb57f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ function endGame() {
// Clear dice results
displayDice.innerHTML = " ";
// Display NEW GAME message
startMessage.innerHTML = "Press PLAY to start a NEW GAME!";
if ((document.getElementById("error").textContent = "Good Job!")) {
document.getElementById("error").textContent = " ";
startMessage.innerHTML = "Press PLAY to start a NEW GAME!";
}
// Stop timer
stopTimer();
// Reset game state
Expand Down

0 comments on commit 1bb57f2

Please sign in to comment.