We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c3795 commit 1d24beaCopy full SHA for 1d24bea
src/services/challenges.js
@@ -313,8 +313,8 @@ class ChallengesService {
313
* @return {Promise} Resolves to the challenge object.
314
*/
315
async getChallengeDetails(challengeId) {
316
- const challenge = await this.private.getChallenges('/challenges/', { id: challengeId })
317
- .then(res => res.challenges[0]);
+ const challenge = await this.private.getChallenges(`/challenges/${challengeId}`)
+ .then(res => res.challenges);
318
319
if (isomorphy.isServerSide()) {
320
const registrants = await this.getChallengeRegistrants(challengeId);
0 commit comments