Skip to content

Commit

Permalink
Avoid tracking end of quiz recap twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mathebox committed Feb 20, 2023
1 parent 724cf04 commit 0e408a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iOS/Views/QuizRecap/QuizRecapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ struct QuizRecapView: View {
loadNewQuestion()
}
.onReceive(timer) { _ in
guard questionEnded else { return }
guard questionEnded && !recapEnded else { return }
if timeRemainingUntilNextQuestion > 0 {
timeRemainingUntilNextQuestion -= 1
} else {
Expand Down

0 comments on commit 0e408a5

Please sign in to comment.