From 620a5a6625eff7dba6658ace894731bed11366ac Mon Sep 17 00:00:00 2001 From: Roger Gutierrez Date: Wed, 20 Nov 2024 17:56:00 -0600 Subject: [PATCH] fix: badge tile bug fixed --- src/components/MyKiva/BadgeTile.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MyKiva/BadgeTile.vue b/src/components/MyKiva/BadgeTile.vue index 598bf93f442..00fa660d7e7 100644 --- a/src/components/MyKiva/BadgeTile.vue +++ b/src/components/MyKiva/BadgeTile.vue @@ -104,9 +104,10 @@ const selectedTier = computed(() => { const tiers = []; tieredBadges.value.forEach(badge => { const tier = badge.achievementData?.tiers?.find(t => !t.completedDate); - const tierBadgeData = getTierBadgeDataByLevel(badge, tier.level); - const levelName = tierBadgeData?.contentfulData?.levelName ?? ''; if (tier) { + const tierBadgeData = getTierBadgeDataByLevel(badge, tier.level); + const levelName = tierBadgeData?.contentfulData?.levelName ?? ''; + tiers.push({ badge, totalProgressToAchievement: badge.achievementData.totalProgressToAchievement,