Skip to content

Commit

Permalink
Fix isClaimed var in ClaimButton
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior committed Oct 21, 2024
1 parent 6e666f7 commit aaaea88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -906,23 +906,6 @@ exports[`ActivityRewardsScreen renders: ActivityRewardsScreen 1`] = `
>
1 SEND
</Text>
<Text
style={
{
"color": "#FFFFFF",
"fontFamily": "System",
"fontSize": 15.6,
"fontWeight": "300",
"lineHeight": 18,
"marginLeft": "auto",
"marginRight": "auto",
"userSelect": "auto",
}
}
suppressHighlighting={true}
>
Claimed
</Text>
</View>
</View>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Hex>()
Expand Down

0 comments on commit aaaea88

Please sign in to comment.