From 5a02f5fbe7aa4fed255c971663345bd37a5eb148 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 1cfe36cd..cb2a58bd 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -57,7 +57,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( @@ -93,9 +93,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