Skip to content

Commit

Permalink
replace verified with isGivbackEligible
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Sep 25, 2024
1 parent 92b64fe commit 51bc941
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/views/donate/OneTime/OneTimeDonationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const CryptoDonation: FC<{
});

const tokenDecimals = selectedOneTimeToken?.decimals || 18;
const projectIsGivBackEligible = !!isGivbackEligible;
const { activeStartedRound } = getActiveRound(project.qfRounds);
const networkId = (chain as Chain)?.id;

Expand Down Expand Up @@ -352,8 +351,6 @@ const CryptoDonation: FC<{
selectedOneTimeToken?.decimals ?? 18,
);

const isProjectGivbacksEligible = !!verified;

const decimals = selectedOneTimeToken?.decimals || 18;
const donationUsdValue =
(tokenPrice || 0) *
Expand Down Expand Up @@ -406,7 +403,7 @@ const CryptoDonation: FC<{
givethDonationAmount={givethDonationAmount}
anonymous={anonymous}
givBackEligible={
isProjectGivbacksEligible &&
isGivbackEligible &&
selectedOneTimeToken.isGivbackEligible &&
tokenPrice !== undefined &&
tokenPrice * projectDonationAmount >=
Expand Down

0 comments on commit 51bc941

Please sign in to comment.