Slight fix
This commit is contained in:
parent
2af3adcfad
commit
a5b36fcac6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue