From ac1bb58ae9a2f3ff1529334179c1897b84176669 Mon Sep 17 00:00:00 2001 From: 0xmegalodon Date: Thu, 1 Feb 2024 13:37:30 +0700 Subject: [PATCH] update hourly reward --- src/modules/PublicSale/hourlyReward/index.tsx | 1 + src/modules/PublicSale/hourlyRewardButton/index.tsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/PublicSale/hourlyReward/index.tsx b/src/modules/PublicSale/hourlyReward/index.tsx index 41d7a04af..5a155ca7b 100644 --- a/src/modules/PublicSale/hourlyReward/index.tsx +++ b/src/modules/PublicSale/hourlyReward/index.tsx @@ -57,6 +57,7 @@ const HourlyReward = () => { return (REWARDS[currentDay.diffDay] as number) / 24; }, [currentDay, REWARDS]) + return null; return ( diff --git a/src/modules/PublicSale/hourlyRewardButton/index.tsx b/src/modules/PublicSale/hourlyRewardButton/index.tsx index a7e7b80e1..fd3e43d0a 100644 --- a/src/modules/PublicSale/hourlyRewardButton/index.tsx +++ b/src/modules/PublicSale/hourlyRewardButton/index.tsx @@ -10,7 +10,8 @@ const HourlyRewardButton = ({ className }: any) => { const hourlyEndTime = useMemo(() => { const res = dayjs.utc().set('minute', 30); - if (dayjs().utc().isAfter(res)) { + if (dayjs().utc().isBefore(res)) { + console.log('fadfa', res.get('hour')); res.set('hour', res.get('hour') + 1); } if(isEnd) { @@ -20,6 +21,9 @@ const HourlyRewardButton = ({ className }: any) => { return res.toString(); }, [isEnd]); + console.log('dayjs.utc()', dayjs.utc().toString()); + console.log('hourlyEndTime', hourlyEndTime); + return (