Skip to content

Commit

Permalink
cuttle-cards#988 fix: deleted unnecessary frozenId boolean check and …
Browse files Browse the repository at this point in the history
…corresponding attribute in user model
  • Loading branch information
nathanbpaul7 committed Aug 22, 2024
1 parent d38d1b2 commit 1140b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions api/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ module.exports = {
collection: 'card',
via: 'faceCards',
},
/**
* Id of a card in player's hand that cannot be played this turn
* @value null iff no card is frozen
*/
frozenId: {
model: 'card',
},
rank: {
type: 'number',
defaultsTo: 1000,
Expand Down
4 changes: 2 additions & 2 deletions src/routes/game/GameView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
:suit="card.suit"
:rank="card.rank"
:is-selected="selectedCard && card.id === selectedCard.id"
:is-frozen="gameStore.player.frozenId === card.id || card.isFrozen"
:is-frozen="card.isFrozen"
class="mt-2 transition-all"
:is-hand-card="true"
:data-player-hand-card="`${card.rank}-${card.suit}`"
Expand All @@ -373,7 +373,7 @@
:suit="card.suit"
:rank="card.rank"
:is-selected="selectedCard && card.id === selectedCard.id"
:is-frozen="gameStore.player.frozenId === card.id || card.isFrozen"
:is-frozen="card.isFrozen"
class="mt-2 transition-all"
:is-hand-card="true"
:data-player-hand-card="`${card.rank}-${card.suit}`"
Expand Down

0 comments on commit 1140b26

Please sign in to comment.