Fix send correct datatypes on hike submit

This commit is contained in:
Berkeley Martinez
2016-03-02 21:54:31 -08:00
parent 5c59e7ea2d
commit 71ebfade15

View File

@ -76,7 +76,7 @@ function handleAnswer(getState, dispatch, next, action) {
let updateUser$;
if (isSignedIn) {
const body = { id, name, challengeType };
const body = { id, name, challengeType: +challengeType };
updateUser$ = postJSON$('/completed-challenge', body)
// if post fails, will retry once
.retry(3)