From dbc8b1ee193cfbb83c09de1921365b00d479b34b Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 20 May 2024 13:43:56 +0200 Subject: [PATCH] fix: undefined token --- docs/src/components/github/GitHubStats.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/components/github/GitHubStats.svelte b/docs/src/components/github/GitHubStats.svelte index 2828fea..8286a28 100644 --- a/docs/src/components/github/GitHubStats.svelte +++ b/docs/src/components/github/GitHubStats.svelte @@ -84,6 +84,9 @@ const data = await refresh.json(); token.set(data.token); return; + } else { + token.set('delete'); + throw new Error('Failed to refresh token'); } } else { throw new Error('Failed to fetch data');