Slight fix

This commit is contained in:
ポール ウェッブ 2019-02-22 13:16:50 -06:00
parent 2af3adcfad
commit a5b36fcac6

View file

@ -64,7 +64,6 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars
.then(response => response.json()) .then(response => response.json())
.then(result => { .then(result => {
switch(true) { switch(true) {
case !result.success:
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 = document.querySelector("developer-program").innerHTML =
"<p>You have already claimed this reward. This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>"; "<p>You have already claimed this reward. This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>";
@ -78,6 +77,8 @@ function syncWithApi(data) { // eslint-disable-line no-unused-vars
default: default:
console.log(data); // eslint-disable-line no-console console.log(data); // eslint-disable-line no-console
document.querySelector("developer-program").innerHTML =
"<p><strong>The LBRY API might be down. Please try again later.</strong></p>";
break; break;
} }
}) })