Skip to content

V5 integration + Gigs work(contentful) fixes #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Sep 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Merge pull request #234 from PrakashDurlabhji/issue_4792
Issue 4792 fix
  • Loading branch information
sushilshinde committed Sep 1, 2020
commit 997eee1ca29345f14b54b09299d110d220e3f5c7
2 changes: 1 addition & 1 deletion src/services/challenges.js
Original file line number Diff line number Diff line change
@@ -328,7 +328,7 @@ class ChallengesService {
if (/^[\d]{5,8}$/.test(challengeId)) {
isLegacyChallenge = true;
challenge = await this.private.getChallenges('/challenges/', { legacyId: challengeId })
.then(res => res.challenges[0]);
.then(res => res.challenges[0] || {});
} else {
challenge = await this.private.getChallenges(`/challenges/${challengeId}`)
.then(res => res.challenges);