Fix send correct datatypes on hike submit
This commit is contained in:
@ -76,7 +76,7 @@ function handleAnswer(getState, dispatch, next, action) {
|
|||||||
|
|
||||||
let updateUser$;
|
let updateUser$;
|
||||||
if (isSignedIn) {
|
if (isSignedIn) {
|
||||||
const body = { id, name, challengeType };
|
const body = { id, name, challengeType: +challengeType };
|
||||||
updateUser$ = postJSON$('/completed-challenge', body)
|
updateUser$ = postJSON$('/completed-challenge', body)
|
||||||
// if post fails, will retry once
|
// if post fails, will retry once
|
||||||
.retry(3)
|
.retry(3)
|
||||||
|
Reference in New Issue
Block a user