From 5b9613c8dfebb01440178df38f5b667d9c5e98b2 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:12:56 -0600 Subject: change announcements to be stack --- frontend/src/store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/src/store.ts') diff --git a/frontend/src/store.ts b/frontend/src/store.ts index 454c7b9a..7ce73335 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -55,7 +55,7 @@ export async function getStore(): Promise { return await getSetting('store', Store.Default); } -export async function getLatestAnnouncement(): Promise { +export async function getAnnouncements(): Promise { let version = await window.DeckyPluginLoader.updateVersion(); let store = await getSetting('store', null); let customURL = await getSetting( @@ -91,9 +91,9 @@ export async function getLatestAnnouncement(): Promise { 'X-Decky-Version': version.current, }, }); - if (res.status !== 200) return null; + if (res.status !== 200) return []; const json = await res.json(); - return json?.[0] ?? null; + return json ?? []; } export async function getPluginList( -- cgit v1.2.3