Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/shared/actions/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getTermsDone(entity, tokens, mockAgreed) {

switch (entity.type) {
case 'challenge': {
termsPromise = service.getChallengeTerms(entity.id, mockAgreedArray);
termsPromise = service.getChallengeTerms(entity.terms, mockAgreedArray);
break;
}
case 'community': {
Expand All @@ -49,7 +49,7 @@ function getTermsDone(entity, tokens, mockAgreed) {
throw new Error(`Entity type '${entity.type}' is not supported by getTermsDone.`);
}

return termsPromise.then(res => ({ entity, terms: res.terms }));
return termsPromise.then(res => ({ entity, terms: res }));
}

/**
Expand Down