function shouldShowQuestion()

in frontend/src/questionList/QuestionList.js [6:17]


function shouldShowQuestion(questionState, playerCurrentQuestion) {
    if (questionState.removed || questionState.question.Answered) {
        return false;
    }
    if (questionState.question.Current) {
        if (playerCurrentQuestion === null || (playerCurrentQuestion.Id === questionState.question.Id)) {
            return false;
        }
    }

    return true;
}