We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ee089d + e00466a commit 57e484fCopy full SHA for 57e484f
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