Cleaned things up a bit

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

Privacy & Terms