Skip to content

Commit

Permalink
Merge pull request #1580 from Giveth/givback-rounds-hotfix
Browse files Browse the repository at this point in the history
HOTFIX: Only for round 20 of GIVbacks allocated GIV is more than a million
  • Loading branch information
mateodaza authored Sep 29, 2022
2 parents fa94f0b + 8a111f9 commit a38a3ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/homeTabs/GIVbacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ export const TabGIVbacksBottom = () => {
const [roundStarTime, setRoundStarTime] = useState(new Date());
const [roundEndTime, setRoundEndTime] = useState(new Date());
const { givTokenDistroHelper, isLoaded } = useGIVTokenDistroHelper();

const allocatedGIV =
round === 20
? `${((1e6 / 14) * 18).toLocaleString(undefined, {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
})} GIV`
: `1 Million GIV`;
useEffect(() => {
if (
givTokenDistroHelper &&
Expand Down Expand Up @@ -250,7 +256,7 @@ export const TabGIVbacksBottom = () => {
</NoWrap>
</P>
<GivAllocated>
<NoWrap>1 Million GIV</NoWrap>
<NoWrap>{allocatedGIV}</NoWrap>
</GivAllocated>
</RoundInfoTallRow>
<RoundButton
Expand Down

1 comment on commit a38a3ef

@vercel
Copy link

@vercel vercel bot commented on a38a3ef Sep 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giveth-dapps-v2 – ./

giveth-dapps-v2-git-main-givethio.vercel.app
www.giveth.io
giveth.io
giveth-dapps-v2-givethio.vercel.app

Please sign in to comment.