Open tangway opened 2 months ago
it was as simple as changing the button text from Next to a conditional rendering statement: {currentQuestionNumber === questions.length - 1 ? 'GAME OVER' : 'Next'}
Next
{currentQuestionNumber === questions.length - 1 ? 'GAME OVER' : 'Next'}
it was as simple as changing the button text from
Next
to a conditional rendering statement:{currentQuestionNumber === questions.length - 1 ? 'GAME OVER' : 'Next'}