if (timerValue <= 0) {
isAnsweringQuestion = !isAnsweringQuestion;
timerValue = isAnsweringQuestion ? timeToCompleteQuestion : timeToShowCorrectAnswer;
} else {
fillFraction = timerValue / (isAnsweringQuestion ? timeToCompleteQuestion : timeToShowCorrectAnswer);
}
2 Likes