diff --git a/src/components/Card.tsx b/src/components/Card.tsx index c927ae6..8ff522e 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -34,7 +34,7 @@ const Card: React.FC = ({ card, setCard, setMoney, setGubblePoints }) className={`w-16 h-16 flex items-center justify-center rounded-lg border-2 text-2xl font-bold transition ${field.scratched ? (field.won ? 'bg-green-200 border-green-500 text-green-700' : 'bg-gray-200 border-gray-400 text-gray-500') : 'bg-yellow-100 border-yellow-400 text-yellow-700 hover:bg-yellow-200'}`} disabled={field.scratched} - onMouseEnter={() => { + onClick={() => { if (field.scratched) return; if (Math.random() < (card.tier?.gubblePointChance ?? 0)) { setGubblePoints((g) => g + 1);