Skip to content

Commit

Permalink
Fix Svelte warnings on build
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Dec 8, 2023
1 parent 232ca98 commit 9918cd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/asteroids-website/src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script>
import { page } from '$app/stores'
import { error } from '@sveltejs/kit';
</script>

<style lang="postcss">
Expand All @@ -18,10 +17,10 @@
<hr class="h-0.5 lg:h-1 bg-black rounded-lg"/>
<div class="text-xl lg:text-3xl font-normal text-left px-4 pt-2">
{#if $page?.status}
<p><a class="italic">Status:</a> {$page?.status}</p>
<p><i class="italic">Status:</i> {$page?.status}</p>
{/if}
{#if $page?.error?.message}
<p><a class="italic">Error Message:</a> {$page?.error?.message}</p>
<p><i class="italic">Error Message:</i> {$page?.error?.message}</p>
{/if}
</div>
{/if}
Expand Down

0 comments on commit 9918cd1

Please sign in to comment.