From 777d9f0f830461a8d8c120fed2e470f9028dd08c Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 12 Sep 2019 14:48:54 -0400 Subject: [PATCH] Yolo fix to rewards Will run locally if this doesn't work... --- app/components/client/devprogram-scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/client/devprogram-scripts.js b/app/components/client/devprogram-scripts.js index c3a4c18..6750875 100644 --- a/app/components/client/devprogram-scripts.js +++ b/app/components/client/devprogram-scripts.js @@ -65,12 +65,12 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars .then(response => response.json()) .then(result => { switch(true) { - case result.error === "this reward is limited to 1 per person": + case result.error === "This reward is limited to 1 per person": document.querySelector("developer-program").innerHTML = "

You have already claimed this reward. This reward is limited to ONE per person. Your enthusiasm is appreciated.

"; return; - case result.error: + case Boolean(result.error): document.querySelector("developer-program").innerHTML = `

${result.error}

`; return;