Fix send correct datatypes on hike submit

This commit is contained in:
Berkeley Martinez
2016-03-03 17:53:33 -08:00
parent 5c59e7ea2d
commit 71ebfade15
+1 -1
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)