mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-18 16:58:01 +00:00
Make forfeit button always visible in player menu
Changed forfeit button to always be visible instead of only when player can lose: - Removed conditional check in LifeCounter (always passes onForfeit) - Removed conditional rendering in PlayerMenu (button always shows) - Button remains functional with safety check inside onClick handler This makes it easier for players to forfeit at any time during the game. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -268,7 +268,7 @@ const LifeCounter = ({ player, opponents, matchScore }: LifeCounterProps) => {
|
||||
isShown={showPlayerMenu}
|
||||
player={player}
|
||||
setShowPlayerMenu={setShowPlayerMenu}
|
||||
onForfeit={playerCanLose(player) ? toggleGameLost : undefined}
|
||||
onForfeit={toggleGameLost}
|
||||
/>
|
||||
</LifeCounterWrapper>
|
||||
</LifeCounterContentWrapper>
|
||||
|
||||
Reference in New Issue
Block a user