coerce challengeType to string to fix video challenges

pull/6980/head
Logan Tegman 2016-02-13 17:45:20 -08:00
parent 55ae5abb08
commit 5b3f98dc04
1 changed files with 1 additions and 1 deletions

View File

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