Yolo fix to rewards
Will run locally if this doesn't work...
This commit is contained in:
parent
b3ae6ca0d6
commit
777d9f0f83
1 changed files with 2 additions and 2 deletions
|
@ -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 =
|
||||
"<p>You have already claimed this reward. This reward is limited to <strong>ONE</strong> per person. Your enthusiasm is appreciated.</p>";
|
||||
return;
|
||||
|
||||
case result.error:
|
||||
case Boolean(result.error):
|
||||
document.querySelector("developer-program").innerHTML =
|
||||
`<p>${result.error}</p>`;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue