From aab58869afbb0cd1338a4c7e34abd9e0489b5558 Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Tue, 29 Oct 2024 19:29:24 +0200 Subject: [PATCH] fix: Donation button not showing for correct campaign --- .../campaigns/CampaignCard/CampaignCard.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/client/campaigns/CampaignCard/CampaignCard.tsx b/src/components/client/campaigns/CampaignCard/CampaignCard.tsx index e03031270..b2ec1ede3 100644 --- a/src/components/client/campaigns/CampaignCard/CampaignCard.tsx +++ b/src/components/client/campaigns/CampaignCard/CampaignCard.tsx @@ -92,15 +92,15 @@ export default function ActiveCampaignCard({ campaign, index }: Props) { - {campaignState === CampaignState.active || - (canAcceptDonationState.has(campaignState) && !allowDonationOnComplete) || ( - - {t('cta.support')} - - )} + {(campaignState === CampaignState.active || + (canAcceptDonationState.has(campaignState) && allowDonationOnComplete)) && ( + + {t('cta.support')} + + )} )