Skip to content

Commit

Permalink
fix: extra optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
dyersituations committed Dec 17, 2024
1 parent e92550b commit ad8a29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useBadgeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ''),
};
};

Expand Down

0 comments on commit ad8a29d

Please sign in to comment.