Skip to content

Commit

Permalink
fix: Donation button not showing for correct campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Oct 29, 2024
1 parent 8913d3e commit aab5886
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/client/campaigns/CampaignCard/CampaignCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
</StyledContent>
</Link>
<StyledCardActions disableSpacing>
{campaignState === CampaignState.active ||
(canAcceptDonationState.has(campaignState) && !allowDonationOnComplete) || (
<DonateButton
href={routes.campaigns.oneTimeDonation(slug)}
variant="contained"
color="secondary">
{t('cta.support')}
</DonateButton>
)}
{(campaignState === CampaignState.active ||
(canAcceptDonationState.has(campaignState) && allowDonationOnComplete)) && (
<DonateButton
href={routes.campaigns.oneTimeDonation(slug)}
variant="contained"
color="secondary">
{t('cta.support')}
</DonateButton>
)}
</StyledCardActions>
</Root>
)
Expand Down

0 comments on commit aab5886

Please sign in to comment.