Skip to content

Commit ad33c6b

Browse files
committed
fix: improve required skills handling
1 parent 8d21446 commit ad33c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/learningpath/LearningPathDetails.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ const LearningPathDetailPage = () => {
208208
<section id="requirements" className="mb-6">
209209
<h2>Requirements</h2>
210210
{requiredSkills && requiredSkills.map((skill) => (
211-
<p key={`requirement-${skill.replace(/\s+/g, '-').substring(0, 40)}`}>
212-
{skill}
211+
<p key={`requirement-${skill.display_name.replace(/\s+/g, '-').substring(0, 40)}`}>
212+
{skill.display_name}
213213
</p>
214214
))}
215215
</section>

0 commit comments

Comments
 (0)