Skip to content

Commit

Permalink
check on caps should be gte
Browse files Browse the repository at this point in the history
  • Loading branch information
dekanbro committed Jul 19, 2023
1 parent 2c81ba9 commit 8cd797b
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 8cd797b

Please sign in to comment.