diff --git a/src/components/MyKiva/BorrowerCarousel.vue b/src/components/MyKiva/BorrowerCarousel.vue index 014631db5a..fce0626ba4 100644 --- a/src/components/MyKiva/BorrowerCarousel.vue +++ b/src/components/MyKiva/BorrowerCarousel.vue @@ -83,7 +83,7 @@ :embla-options="{ loop: false, align: 'center'}" > diff --git a/src/components/MyKiva/EarnedBadgesSection.vue b/src/components/MyKiva/EarnedBadgesSection.vue index 3a61589da5..2efe5e99ab 100644 --- a/src/components/MyKiva/EarnedBadgesSection.vue +++ b/src/components/MyKiva/EarnedBadgesSection.vue @@ -15,7 +15,8 @@ class="badge-container tw-flex tw-flex-col tw-justify-between tw-p-1.5 tw-rounded" >
@@ -143,15 +144,20 @@ const loadMoreBadges = () => { visibleOffset.value += 1; }; +const isTieredBadge = badge => !!badge?.achievementData?.tiers?.length; + const clickBadge = badge => { - $kvTrackEvent( - 'portfolio', - 'click', - 'already-earned-badge-modal-from-earned-badge-section', - badge.challengeName, - badge.level, - ); - emit('badge-clicked', badge); + // Badge click behavior only supported for tiered badges + if (isTieredBadge(badge)) { + $kvTrackEvent( + 'portfolio', + 'click', + 'already-earned-badge-modal-from-earned-badge-section', + badge.challengeName, + badge.level, + ); + emit('badge-clicked', badge); + } }; diff --git a/src/components/MyKiva/MyKivaNavigation.vue b/src/components/MyKiva/MyKivaNavigation.vue index f8d052ce7c..7563b370a4 100644 --- a/src/components/MyKiva/MyKivaNavigation.vue +++ b/src/components/MyKiva/MyKivaNavigation.vue @@ -1,7 +1,7 @@