Disable "Roll Dice" on win/loss
This commit is contained in:
parent
461decff78
commit
647963600f
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ const CrapsGame: React.FC<CrapsGameProps> = ({
|
||||||
|
|
||||||
{/* Controls */}
|
{/* Controls */}
|
||||||
<div className="flex justify-center gap-4">
|
<div className="flex justify-center gap-4">
|
||||||
<Button onClick={rollDice} disabled={isRolling} className="px-8 py-3 text-lg">
|
<Button onClick={rollDice} disabled={isRolling || gameResult === 'win' || gameResult === 'lose'} className="px-8 py-3 text-lg">
|
||||||
{isRolling ? 'Rolling...' : 'Roll Dice'}
|
{isRolling ? 'Rolling...' : 'Roll Dice'}
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" onClick={resetGame} className="px-8 py-3">
|
<Button variant="outline" onClick={resetGame} className="px-8 py-3">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue