diff --git a/src/App.svelte b/src/App.svelte index 7ed7003..2a8b3f5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,5 +1,5 @@ @@ -44,15 +39,17 @@

Set start date

{/if} - {#await getQuote() then { quote, author }} - + {#await quote.load() then} + {#if $quote} + + {/if} {/await}

{$time}

- +
{/await} diff --git a/src/lib/components/Quote.svelte b/src/lib/components/Quote.svelte index 1701700..f9cd461 100644 --- a/src/lib/components/Quote.svelte +++ b/src/lib/components/Quote.svelte @@ -1,11 +1,13 @@
-

{quote}

- ~ {author} +

{quote.content}

+ ~ {quote.author}