diff --git a/src/routes/wish/tally/index.svelte b/src/routes/wish/tally/index.svelte index f830cfa4..725750c6 100644 --- a/src/routes/wish/tally/index.svelte +++ b/src/routes/wish/tally/index.svelte @@ -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];