Merge pull request #6980 from ltegman/fix/video-submissions

Fix video challenge submissions
This commit is contained in:
Justin Richardsson
2016-02-13 21:17:13 -05:00

View File

@ -257,7 +257,7 @@ export default Actions({
// challenge completed // challenge completed
let update$; let update$;
if (isSignedIn) { if (isSignedIn) {
const body = { id, name, challengeType }; const body = { id, name, challengeType: +challengeType };
update$ = this.postJSON$('/completed-challenge', body) update$ = this.postJSON$('/completed-challenge', body)
// if post fails, will retry once // if post fails, will retry once
.retry(3) .retry(3)