diff --git a/src/components/MyKiva/BadgesSection.vue b/src/components/MyKiva/BadgesSection.vue index 1a151dd40e..a8b0ee6a54 100644 --- a/src/components/MyKiva/BadgesSection.vue +++ b/src/components/MyKiva/BadgesSection.vue @@ -20,18 +20,18 @@ {{ badge.challengeName }} -
-
+
{ const levelCaption = badge => { return `Level ${getActiveTierData(badge).level}/${getBadgeWithVisibleTiers(badge).achievementData.tiers.length}`; }; + +const getBadgeStatus = badge => { + const activeTier = getActiveTierData(badge); + if (activeTier?.level === badge?.achievementData?.tiers?.length) { + return BADGE_COMPLETED; + } + return BADGE_IN_PROGRESS; +};