Skip to content

Commit

Permalink
Merge pull request #1639 from Giveth/remove-round-20-conditions
Browse files Browse the repository at this point in the history
Remove round 20 conditions
  • Loading branch information
RamRamez authored Oct 10, 2022
2 parents 05bd631 + 97dcfb8 commit 48021c2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/components/homeTabs/GIVbacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ 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 All @@ -152,11 +145,7 @@ export const TabGIVbacksBottom = () => {
_roundEndTime.setMinutes(startTime.getMinutes());
setRoundEndTime(_roundEndTime);
const _roundStartTime = new Date(_roundEndTime);
if (_round === 20) {
_roundStartTime.setDate(_roundEndTime.getDate() - 18);
} else {
_roundStartTime.setDate(_roundEndTime.getDate() - 14);
}
_roundStartTime.setDate(_roundEndTime.getDate() - 14);
setRoundStarTime(_roundStartTime);
}
}, [givTokenDistroHelper]);
Expand Down Expand Up @@ -256,7 +245,7 @@ export const TabGIVbacksBottom = () => {
</NoWrap>
</P>
<GivAllocated>
<NoWrap>{allocatedGIV}</NoWrap>
<NoWrap>1 Million GIV</NoWrap>
</GivAllocated>
</RoundInfoTallRow>
<RoundButton
Expand Down

0 comments on commit 48021c2

Please sign in to comment.