From 5b3f98dc0464b82d66913eb2cffdfa518741d891 Mon Sep 17 00:00:00 2001 From: Logan Tegman Date: Sat, 13 Feb 2016 17:45:20 -0800 Subject: [PATCH] coerce challengeType to string to fix video challenges --- common/app/routes/Hikes/flux/Actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/app/routes/Hikes/flux/Actions.js b/common/app/routes/Hikes/flux/Actions.js index 6ef70eff96..9da3426226 100644 --- a/common/app/routes/Hikes/flux/Actions.js +++ b/common/app/routes/Hikes/flux/Actions.js @@ -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)