We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7656cf + 193bb43 commit 6e879afCopy full SHA for 6e879af
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);
+ .then(res => res.challenges[0] || {});
332
} else {
333
challenge = await this.private.getChallenges(`/challenges/${challengeId}`)
334
.then(res => res.challenges);
0 commit comments