coerce challengeType to string to fix video challenges

This commit is contained in:
Logan Tegman
2016-02-13 17:45:20 -08:00
parent 55ae5abb08
commit 5b3f98dc04

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)