From 9b0c3fe6cb72c0bb9ad4034b0f886d7c28cb9002 Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Mon, 22 Jul 2024 15:20:39 +0800 Subject: [PATCH] fix daily draw issue --- src/components/DashboardS2/DailyRoulette/DailyDrawModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DashboardS2/DailyRoulette/DailyDrawModal.tsx b/src/components/DashboardS2/DailyRoulette/DailyDrawModal.tsx index 6b3c6c33..761ddc44 100644 --- a/src/components/DashboardS2/DailyRoulette/DailyDrawModal.tsx +++ b/src/components/DashboardS2/DailyRoulette/DailyDrawModal.tsx @@ -101,10 +101,10 @@ const DailyDrawModal: React.FC = (props: IProps) => { if (!modalInstance.isOpen) { modalInstance.onOpen(); } + setSpinging(true); const res = await dailyOpen(); const tokenId = res.result.tokenId as number; const prizeId = PRIZE_MAP[tokenId]; - setSpinging(true); onDrawed(); // update remain times await drawRef.current?.start(prizeId); const prize = PrizeItems[PRIZE_MAP[tokenId]];