resources/views/game.blade.php: pass $item->jackpot correctly.
This commit is contained in:
parent
5870c2bdc8
commit
83963cce66
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ $card_class = 'absolute backface-hidden flex items-center justify-center border
|
||||||
<x-card :number="$item->id" :card="$item"
|
<x-card :number="$item->id" :card="$item"
|
||||||
:win="$this->state->isWin($pos)"
|
:win="$this->state->isWin($pos)"
|
||||||
:flipped="$this->state->isPressed($pos)"
|
:flipped="$this->state->isPressed($pos)"
|
||||||
wire:click="toggle({{ $pos }}, {{ $item->jackpot }})" />
|
wire:click="toggle({{ $pos }}, {{ $item->jackpot ? 'true' : 'false' }})" />
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue