From a5b36fcac6811122179591fcee2042067b57d544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Fri, 22 Feb 2019 13:16:50 -0600 Subject: [PATCH] Slight fix --- app/components/client/devprogram-scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/client/devprogram-scripts.js b/app/components/client/devprogram-scripts.js index d6ca388..8f5d9d6 100644 --- a/app/components/client/devprogram-scripts.js +++ b/app/components/client/devprogram-scripts.js @@ -64,7 +64,6 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars .then(response => response.json()) .then(result => { switch(true) { - case !result.success: 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.

"; @@ -78,6 +77,8 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars default: console.log(data); // eslint-disable-line no-console + document.querySelector("developer-program").innerHTML = + "

The LBRY API might be down. Please try again later.

"; break; } })