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;