fix errors
This commit is contained in:
parent
6107dea9a5
commit
3a69358445
|
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue