mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
coerce challengeType to string to fix video challenges
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user