Skip to content

Commit

Permalink
Merge pull request #3 from HausDAO/feat/twoColorProgressBar
Browse files Browse the repository at this point in the history
check on caps should be gte
  • Loading branch information
dekanbro authored Jul 19, 2023
2 parents 75efd50 + 8cd797b commit 7eb918b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ProgressSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const ProgressSection = ({

if (Number(TARGETS.SOFT_CAP) < Number(TARGETS.MAX_YEET)) {
validCaps = true;
softCapReached = Number(yeetBalance) > Number(TARGETS.SOFT_CAP);
hardCapReached = Number(yeetBalance) > Number(TARGETS.MAX_YEET);
softCapReached = Number(yeetBalance) >= Number(TARGETS.SOFT_CAP);
hardCapReached = Number(yeetBalance) >= Number(TARGETS.MAX_YEET);
const softCapPerc =
(Number(TARGETS.SOFT_CAP) / Number(TARGETS.MAX_YEET)) * 100; // 100% of soft cap
hardCapDisp =
Expand Down

0 comments on commit 7eb918b

Please sign in to comment.