Skip to content

Commit 7de4c5c

Browse files
committed
InputSkillSelector: add falback when skillSources is missing
1 parent 3b5082b commit 7de4c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/shared/lib/components/input-skill-selector/InputSkillSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mapEmsiSkillToInputOption = (s: EmsiSkill): InputMultiselectOption => ({
99
...s,
1010
label: s.name,
1111
value: s.skillId,
12-
verified: s.skillSources.includes(EmsiSkillSources.challengeWin),
12+
verified: !!s.skillSources?.includes(EmsiSkillSources.challengeWin),
1313
})
1414

1515
interface Option {

0 commit comments

Comments
 (0)