diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c57d3ba..2a6e201 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -7,7 +7,7 @@ $: backgroundColor = "#5cdd8b"; - $: if (!data.error) { + $: if (!data.announcements.error) { if (data.announcements.incident) { if (data.announcements.incident.style === "info") { backgroundColor = "#0dcaf0"; @@ -28,7 +28,7 @@ -{#if !data.error} +{#if !data.announcements.error} {#if data.announcements.incident}
{/if} {:else} -

{data.message}

+

{data.announcements.message}

{/if}