diff --git a/src/modules/PublicSale/hourlyRewardButton/index.tsx b/src/modules/PublicSale/hourlyRewardButton/index.tsx index e2fa95548..0c04b08e1 100644 --- a/src/modules/PublicSale/hourlyRewardButton/index.tsx +++ b/src/modules/PublicSale/hourlyRewardButton/index.tsx @@ -155,15 +155,15 @@ const HourlyRewardButton = ({ className }: any) => { return `Congrats! You Have Earned`; } else if (Number(dailyReward?.pending) > 0) { return `Your Estimated Reward`; - } else if (!dailyReward) { + } else if (rewardValue === 0) { return `Contribute early & earn extra $BVM`; } return `Today's Total Reward`; }, [rewardValue, dailyReward]); - const isBuy = useMemo(() => { - return !!dailyReward; - }, [dailyReward]); + const needBuy = useMemo(() => { + return rewardValue === 0 && Number(dailyReward?.pending || "0") === 0; + }, [rewardValue, dailyReward]); const generateLinkTweet = async () => { let code = ''; @@ -268,22 +268,22 @@ const HourlyRewardButton = ({ className }: any) => { {titleReward} { - isBuy && ( + !needBuy && ( - 0 ? s.claimable : '')}>{formatCurrency(rewardValue || dailyReward?.pending || currentDayReward, MIN_DECIMAL, MIN_DECIMAL, 'BTC', false)} BVM + {formatCurrency(rewardValue || dailyReward?.pending, MIN_DECIMAL, MIN_DECIMAL, 'BTC', false)} BVM ) } <> { - isBuy ? ( + !needBuy ? (