From a38210bde76e8d8fe679a49442a401900e5a07f3 Mon Sep 17 00:00:00 2001 From: Kilter Date: Thu, 26 Sep 2024 16:35:30 -0500 Subject: [PATCH] Update VerificationBadge.tsx --- src/components/VerificationBadge.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/VerificationBadge.tsx b/src/components/VerificationBadge.tsx index 67b17d2368..3a1d001596 100644 --- a/src/components/VerificationBadge.tsx +++ b/src/components/VerificationBadge.tsx @@ -10,7 +10,9 @@ interface IProps { const VerificationBadge: FC = ({ isVerified, verificationStatus }) => { const verStatus = isVerified ? EVerificationStatus.VERIFIED - : verificationStatus; + : verificationStatus !== EVerificationStatus.VERIFIED + ? verificationStatus + : ''; let label, badgeStatus; switch (verStatus) { @@ -22,11 +24,10 @@ const VerificationBadge: FC = ({ isVerified, verificationStatus }) => { label = 'Submitted'; badgeStatus = EBadgeStatus.GIVETH; break; - // NOTE: Commenting this as we should only display according to GIVback eligibility - // case EVerificationStatus.VERIFIED: - // label = 'Eligible'; - // badgeStatus = EBadgeStatus.SUCCESS; - // break; + case EVerificationStatus.VERIFIED: + label = 'Eligible'; + badgeStatus = EBadgeStatus.SUCCESS; + break; case EVerificationStatus.DRAFT: label = 'Incomplete'; badgeStatus = EBadgeStatus.WARNING;