From aaaea88f3ee0d03e6c26c6c9e1bdf81f00b29e9a Mon Sep 17 00:00:00 2001 From: youngkidwarrior Date: Mon, 21 Oct 2024 08:55:12 -0700 Subject: [PATCH] Fix isClaimed var in ClaimButton --- .../activity/__snapshots__/screen.test.tsx.snap | 17 ----------------- .../components/DistributionClaimButton.tsx | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/app/features/account/rewards/activity/__snapshots__/screen.test.tsx.snap b/packages/app/features/account/rewards/activity/__snapshots__/screen.test.tsx.snap index 4e09c9fd5..b57f8420e 100644 --- a/packages/app/features/account/rewards/activity/__snapshots__/screen.test.tsx.snap +++ b/packages/app/features/account/rewards/activity/__snapshots__/screen.test.tsx.snap @@ -906,23 +906,6 @@ exports[`ActivityRewardsScreen renders: ActivityRewardsScreen 1`] = ` > 1 SEND - - Claimed - diff --git a/packages/app/features/account/rewards/components/DistributionClaimButton.tsx b/packages/app/features/account/rewards/components/DistributionClaimButton.tsx index d29cefd7a..6f570fcfb 100644 --- a/packages/app/features/account/rewards/components/DistributionClaimButton.tsx +++ b/packages/app/features/account/rewards/components/DistributionClaimButton.tsx @@ -36,7 +36,7 @@ export const DistributionClaimButton = ({ distribution }: DistributionsClaimButt // Check if the user is eligible const share = distribution.distribution_shares?.[0] const isEligible = !!share && share.amount > 0 - const isClaimActive = true + const isClaimActive = distribution.qualification_end < new Date() const trancheId = BigInt(distribution.number - 1) // tranches are 0-indexed const chainId = distribution.chain_id as keyof typeof sendMerkleDropAddress const [sentTxHash, setSentTxHash] = useState()