Skip to content

Commit

Permalink
restore calculation of epoch days
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Apr 8, 2024
1 parent 65c9047 commit b8768d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,10 @@ const AirdropStats = ({
navigate,
isMobile,
}: IAirdropStats) => {
const epochDaysLeft = 89;
const epochPercentage = 0;
const dayDiff = epochMax - epochDays
const epochDaysLeft = dayDiff > 0 ? dayDiff : 0
const percentage = Math.floor((epochDays / epochMax) * 100)
const epochPercentage = percentage < 100 ? percentage : 100

return (
<div
Expand Down

0 comments on commit b8768d0

Please sign in to comment.