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} width={1416}
height={177} height={177}
alt="banner" alt="banner"
className="rounded-[12px] object-cover h-[177px]" className="rounded-[12px] h-[177px] md:object-cover"
/> />
</div> </div>
)} )}

View File

@ -82,10 +82,12 @@ const LotteryWinnersSection = ({ data }: { data: any }) => {
setIsProcessing(true); // Lock processing setIsProcessing(true); // Lock processing
const message = messageQueue[0]; // Get the first message in the queue const message = messageQueue[0]; // Get the first message in the queue
try { if (message?.winner_no) {
await handleMessage(message); try {
} catch (error) { await handleMessage(message);
console.error("Error processing message:", error); } catch (error) {
console.error("Error processing message:", error);
}
} }
setMessageQueue((prevQueue) => prevQueue.slice(1)); // Remove the processed message from the queue setMessageQueue((prevQueue) => prevQueue.slice(1)); // Remove the processed message from the queue