Skip to content

Commit

Permalink
fix: hide name using badge id
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Aug 23, 2024
1 parent 5dada33 commit 11e992d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Thanks/Badges/DetailSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class="badge tw-mx-auto"
alt="Gift icon"
>
<h3 v-if="badge.name !== selectedName" class="tw-text-center">
<h3 v-if="hideBadgeName(badge.id)" class="tw-text-center">
{{ badge.name }}
</h3>
</div>
Expand Down Expand Up @@ -162,6 +162,9 @@ export default {
const badgeIndex = this.$refs.badgeCarousel.currentIndex + 1;
this.currentBadgeIndex = badgeIndex;
},
hideBadgeName(badgeId) {
return badgeId !== this.currentBadge?.id;
}
}
};
</script>
Expand Down

0 comments on commit 11e992d

Please sign in to comment.