From bcc11ddbc152c828a0ee4baaf8f8b231efc46cd3 Mon Sep 17 00:00:00 2001 From: EdiFarcas Date: Mon, 5 May 2025 15:37:51 +0300 Subject: [PATCH] Update, nu merge, lag --- src/components/GiveawayCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/GiveawayCard.tsx b/src/components/GiveawayCard.tsx index bcae1af..f14762b 100644 --- a/src/components/GiveawayCard.tsx +++ b/src/components/GiveawayCard.tsx @@ -15,6 +15,8 @@ interface GiveawayCardProps { const GiveawayCard: React.FC = ({ id, title, description, imageUrl, value, userId}) => { const [isModalOpen, setIsModalOpen] = useState(false); + const entrienumber = entrycount(userId, id); + const handleEnterClick = () => { const activeUserCoins = 300; // Replace with actual logic to fetch active user's coins (TO DO LATER) if (activeUserCoins >= value) { @@ -35,7 +37,7 @@ const GiveawayCard: React.FC = ({ id, title, description, ima

{title}

{description}

Value: {value} coins

-

Your entries: {entrycount(userId, id)}

+ {/*

Your entries: {entrycount(userId, id)}

*/}