diff --git a/src/composables/useBadgeData.js b/src/composables/useBadgeData.js index 4c604747b2..429140f14a 100644 --- a/src/composables/useBadgeData.js +++ b/src/composables/useBadgeData.js @@ -272,7 +272,7 @@ export default function useBadgeData() { // Handle both tiered and old badges (use challenge name for non-tiered) tierName: contentfulData?.challengeName ? `${(contentfulData.challengeName)}${levelText}` - : badge.challengeName, + : (badge?.challengeName ?? ''), }; };