From f1c03ce0f62be04a7783e6bc68c49a61a736d336 Mon Sep 17 00:00:00 2001 From: Roger Gutierrez <94026278+roger-in-kiva@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:07:40 -0600 Subject: [PATCH] fix: badge tile bug fixed (#5705) --- src/components/MyKiva/BadgeTile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MyKiva/BadgeTile.vue b/src/components/MyKiva/BadgeTile.vue index 598bf93f44..3ccb3266f2 100644 --- a/src/components/MyKiva/BadgeTile.vue +++ b/src/components/MyKiva/BadgeTile.vue @@ -104,9 +104,9 @@ 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,