From 54256ba2da672272fc922c03bf0f7abc38ee9c5c Mon Sep 17 00:00:00 2001 From: Kakabay <2kakabayashyrberdyew@gmail.com> Date: Fri, 3 Jan 2025 17:52:05 +0500 Subject: [PATCH] lottery fix --- components/lottery/LotteryWinnersSection.tsx | 35 ++++++++++--------- .../slotCounter/LotterySlotCounter.tsx | 1 + 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/components/lottery/LotteryWinnersSection.tsx b/components/lottery/LotteryWinnersSection.tsx index 15042ee..85a1d49 100644 --- a/components/lottery/LotteryWinnersSection.tsx +++ b/components/lottery/LotteryWinnersSection.tsx @@ -188,32 +188,35 @@ const LotteryWinnersSection = ({ lotteryStatus }: { lotteryStatus: string }) =>
- {winnerSelectingStatus === 'not-selected' || winnerSelectingStatus === 'is-selecting' ? ( - - ) : ( -
+
+ {winnerSelectingStatus === 'not-selected' || + winnerSelectingStatus === 'is-selecting' ? ( - {winnerText && ( + ) : ( +
- )} -
- )} + {winnerText && ( + + )} +
+ )} +
-
+
diff --git a/components/lottery/slotCounter/LotterySlotCounter.tsx b/components/lottery/slotCounter/LotterySlotCounter.tsx index 2c2354d..3c49955 100644 --- a/components/lottery/slotCounter/LotterySlotCounter.tsx +++ b/components/lottery/slotCounter/LotterySlotCounter.tsx @@ -84,6 +84,7 @@ const LotterySlotCounter = ({ numberString, isAnimating }: LotterySlotCounterPro speed={2} delay={2} startFromLastDigit + animateUnchanged animateOnVisible={false} autoAnimationStart={false} />