Skip to content

Commit

Permalink
feature: show player points (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSchlangen authored Aug 29, 2023
1 parent 114fc2d commit ee0c74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-dev/party-game/app/components/question-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ export default function QuestionPanel({game, gameRef, currentQuestion}: { game:
</h3>
)}
{hasEverGuessed && currentPlayer.displayName && <div className="mt-2">You are {currentPlayer.displayName}</div>}
{isShowingCorrectAnswers && currentPlayer?.score > -1 && hasEverGuessed && currentPlayer.displayName && <div>and you have {currentPlayer.score} point{currentPlayer.score === 1 ? '' : 's'}</div>}
</div>)}
</div>
</BorderCountdownTimer>
<center className='hidden bg-gray-100 h-[50dvh] lg:block overflow-hidden'>
{isShowingCorrectAnswers && currentPlayer?.score > -1 && <div>and you have {currentPlayer.score} point{currentPlayer.score === 1 ? '' : 's'}</div>}
{(isShowingCorrectAnswers && playerScores.length > 0) ? (<>
<Scoreboard />
</>) : (<>
Expand Down

0 comments on commit ee0c74b

Please sign in to comment.