Skip to content

Commit

Permalink
Merge pull request #332 from zkLinkProtocol/fix/respin_issue
Browse files Browse the repository at this point in the history
fix daily draw issue
  • Loading branch information
zkLeonardo authored Jul 22, 2024
2 parents e98a24c + 9b0c3fe commit 3f34e18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ const DailyDrawModal: React.FC<IProps> = (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]];
Expand Down

0 comments on commit 3f34e18

Please sign in to comment.