Skip to content

Commit

Permalink
Update VerificationBadge.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mateodaza committed Sep 26, 2024
1 parent 2feb18e commit a38210b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/VerificationBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ interface IProps {
const VerificationBadge: FC<IProps> = ({ isVerified, verificationStatus }) => {
const verStatus = isVerified
? EVerificationStatus.VERIFIED
: verificationStatus;
: verificationStatus !== EVerificationStatus.VERIFIED
? verificationStatus
: '';

let label, badgeStatus;
switch (verStatus) {
Expand All @@ -22,11 +24,10 @@ const VerificationBadge: FC<IProps> = ({ 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;
Expand Down

0 comments on commit a38210b

Please sign in to comment.