tangway / flag-guessing-game-frontend

0 stars 0 forks source link

show user that game has ended #46

Open tangway opened 2 months ago

tangway commented 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'}