Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0a8d93c

Browse files
Fix issue where adding an existing skill would not work
1 parent d881df5 commit 0a8d93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ProfileCard/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export async function updateUserSkills(apiClient, { id, skills }) {
207207
if (existingSkill && existingSkill.length > 0) {
208208
userSkill = {
209209
userId: id,
210-
skillId: existingSkill.id,
210+
skillId: existingSkill[0].id,
211211
};
212212
} else {
213213
const newSkill = {

0 commit comments

Comments
 (0)