Skip to content

Commit

Permalink
fix: badge tile bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Nov 20, 2024
1 parent 7d289db commit 620a5a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MyKiva/BadgeTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '';

Check failure on line 110 in src/components/MyKiva/BadgeTile.vue

View workflow job for this annotation

GitHub Actions / build

Trailing spaces not allowed
tiers.push({
badge,
totalProgressToAchievement: badge.achievementData.totalProgressToAchievement,
Expand Down

0 comments on commit 620a5a6

Please sign in to comment.