diff --git a/src/components/MyKiva/BadgesSection.vue b/src/components/MyKiva/BadgesSection.vue index 6e5947df45..7701c2a992 100644 --- a/src/components/MyKiva/BadgesSection.vue +++ b/src/components/MyKiva/BadgesSection.vue @@ -76,7 +76,7 @@ const visibleBadges = computed(() => { const getBadgeStatus = badge => { const activeTier = getActiveTierData(badge); - if (activeTier?.level === badge?.achievementData?.tiers?.length) { + if (activeTier?.level === badge?.achievementData?.tiers?.length && activeTier?.completedDate) { return BADGE_COMPLETED; } return BADGE_IN_PROGRESS; diff --git a/src/composables/useBadgeData.js b/src/composables/useBadgeData.js index 429140f14a..e9c1fb0b51 100644 --- a/src/composables/useBadgeData.js +++ b/src/composables/useBadgeData.js @@ -189,17 +189,18 @@ export default function useBadgeData() { const currentTier = badge.achievementData.tiers[levelIndex]; /** * { - * "id": "", - * "challengeName": "", - * "level": 1, - * "levelName": "", - * "shareFact": "", - * "shareFactFootnote": "", - * "shareFactUrl": "", - * "imageUrl": "", - * "target": 1, - * "tierStatement": "", - * "learnMoreURL": "" + * "id": string, + * "challengeName": string, + * "level": number, + * "levelName": string, + * "shareFact": string, + * "shareFactFootnote": string, + * "shareFactUrl": string, + * "imageUrl": string, + * "target": number, + * "tierStatement": string, + * "learnMoreURL": string, + * "completedDate": string, * } */ return {