diff --git a/components/lottery/LotteryHeader.tsx b/components/lottery/LotteryHeader.tsx index 02c1d58..92e000c 100644 --- a/components/lottery/LotteryHeader.tsx +++ b/components/lottery/LotteryHeader.tsx @@ -27,7 +27,7 @@ const LotteryHeader = ({ title, description, image, smsCode, startDate }: Lotter width={1416} height={177} alt="banner" - className="rounded-[12px] object-cover h-[177px]" + className="rounded-[12px] h-[177px] md:object-cover" /> )} diff --git a/components/lottery/LotteryWinnersSection.tsx b/components/lottery/LotteryWinnersSection.tsx index 2a1cef0..89a3c6b 100644 --- a/components/lottery/LotteryWinnersSection.tsx +++ b/components/lottery/LotteryWinnersSection.tsx @@ -82,10 +82,12 @@ const LotteryWinnersSection = ({ data }: { data: any }) => { setIsProcessing(true); // Lock processing const message = messageQueue[0]; // Get the first message in the queue - try { - await handleMessage(message); - } catch (error) { - console.error("Error processing message:", error); + if (message?.winner_no) { + try { + await handleMessage(message); + } catch (error) { + console.error("Error processing message:", error); + } } setMessageQueue((prevQueue) => prevQueue.slice(1)); // Remove the processed message from the queue