fix errors

This commit is contained in:
Ilgeldi 2025-02-16 13:12:03 +05:00
parent 6107dea9a5
commit 3a69358445
2 changed files with 7 additions and 5 deletions

View File

@ -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"
/>
</div>
)}

View File

@ -82,11 +82,13 @@ const LotteryWinnersSection = ({ data }: { data: any }) => {
setIsProcessing(true); // Lock processing
const message = messageQueue[0]; // Get the first message in the queue
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
setIsProcessing(false); // Unlock processing