Skip to content

Commit

Permalink
Update GIVbacks.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mateodaza committed Sep 29, 2022
1 parent fa94f0b commit 8a111f9
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

0 comments on commit 8a111f9

Please sign in to comment.