Skip to content

Commit

Permalink
Merge pull request #80 from daithihearn/bugfix10
Browse files Browse the repository at this point in the history
Fixing autoplay bug
  • Loading branch information
daithihearn authored Jan 15, 2023
2 parents 40e7634 + d83b245 commit 5d8fa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/GameUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const bestCardLead = (round: Round) => {
// Remove played trump cards
round.completedHands.forEach(hand => {
hand.playedCards.forEach(p => {
const card = CARDS.find(c => (c.name = p.card))
const card = CARDS.find(c => c.name === p.card)
if (
(card && card.suit === round.suit) ||
p.card === "JOKER" ||
Expand Down

0 comments on commit 5d8fa14

Please sign in to comment.