Skip to content

Commit 74fab95

Browse files
fix(GameView): wrap top cards in v-if (#1358)
1 parent 27dc7a8 commit 74fab95

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/routes/game/GameView.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
}"
173173
>
174174
<GameCard
175+
v-if="topCard"
175176
:suit="gameStore.firstCardRevealed ? topCard?.suit : undefined"
176177
:rank="gameStore.firstCardRevealed ? topCard?.rank : undefined"
177178
:data-top-card="(gameStore.firstCardRevealed && topCard)
@@ -182,6 +183,7 @@
182183
/>
183184
</div>
184185
<div
186+
v-if="secondCard"
185187
class="seven-card-wrapper"
186188
:class="{
187189
'seven-card-offset': !gameStore.secondCardRevealed,

0 commit comments

Comments
 (0)