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

Commit 5a062d9

Browse files
authored
change to object as the member API was fixed
1 parent 0cbfaf8 commit 5a062d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

group-members-with-skills.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function getMemberLocation(handle) {
175175
}
176176
})
177177
console.log(res.data)
178-
const location = _.pick(_.get(res, 'data[0]', {}), ['homeCountryCode', 'competitionCountryCode'])
178+
const location = _.pick(_.get(res, 'data', {}), ['homeCountryCode', 'competitionCountryCode'])
179179

180180
return location.homeCountryCode || location.competitionCountryCode || 'n/a'
181181
} catch (error) {

0 commit comments

Comments
 (0)