From a231f0d40836f3642de8dec4932f196c0a55d0cf Mon Sep 17 00:00:00 2001 From: Daithi Hearn Date: Sun, 15 Jan 2023 16:22:02 +0100 Subject: [PATCH] Fixing autoplay bug --- src/utils/GameUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/GameUtils.ts b/src/utils/GameUtils.ts index c0035be..ec86f83 100644 --- a/src/utils/GameUtils.ts +++ b/src/utils/GameUtils.ts @@ -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" ||