Skip to content

Commit

Permalink
fix: badge tile bug fixed (#5705)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva authored Nov 21, 2024
1 parent 7d289db commit f1c03ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MyKiva/BadgeTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f1c03ce

Please sign in to comment.