Fix when error wish tally

pull/1/head
Made Baruna 2022-01-04 13:12:34 +07:00
parent 773cd84167
commit 6c20f3d026
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,7 @@
}
async function getData() {
error = undefined;
loading = true;
const url = new URL(`${__paimon.env.API_HOST}/wish`);
@ -112,6 +113,10 @@
headers: { 'Content-Type': 'application/json' },
});
if (res.status === 400) {
error = 'Not available yet';
}
const data = await res.json();
const values = [0, 0];