We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf9c320 + 3c6dce3 commit e0d7b3aCopy full SHA for e0d7b3a
src/components/Card/hooks/useCardPile.tsx
@@ -45,9 +45,8 @@ export function useCardPile() {
45
46
bestHand.current = calculateBestHand(cardsToSet);
47
bust.current = bestHand.current.score > 21;
48
- if (cardsToSet.length === 5 && bestHand.current.score <= 21) {
49
- fiveCardTrick.current = true;
50
- }
+ fiveCardTrick.current = cards.length === 5 && bestHand.current.score <= 21;
+
51
setCardsState(cardsToSet);
52
}
53
0 commit comments