We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5367d03 commit 8fe8d9eCopy full SHA for 8fe8d9e
src/services/challenges.js
@@ -328,7 +328,7 @@ class ChallengesService {
328
if (/^[\d]{5,8}$/.test(challengeId)) {
329
isLegacyChallenge = true;
330
challenge = await this.private.getChallenges('/challenges/', { legacyId: challengeId })
331
- .then(res => res.challenges[0]);
+ .then(res => res.challenges);
332
} else {
333
challenge = await this.private.getChallenges(`/challenges/${challengeId}`)
334
.then(res => res.challenges);
0 commit comments