diff options
| author | Adam Soltys <[email protected]> | 2022-08-16 16:26:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-16 16:26:05 -0700 |
| commit | 7b9bc9be24a565d513c8904237563479265aee9f (patch) | |
| tree | 4749a3d4dd845e13f23c38924752007a281775c0 /src/routes/invoice | |
| parent | 4228d55f0be8497b2f8360460d68e99f14cc7d07 (diff) | |
| download | coinos-ui-7b9bc9be24a565d513c8904237563479265aee9f.tar.gz coinos-ui-7b9bc9be24a565d513c8904237563479265aee9f.zip | |
endpoint migrations
Diffstat (limited to 'src/routes/invoice')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 0252a6b1..d9f7543d 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -1,6 +1,4 @@ <script> - throw new Error("@migration task: Add data prop (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292707)"); - import { get, post, reverseFormat } from '$lib/utils'; import { browser } from '$app/env'; import { invoices, user, preferredCurrency } from '$lib/store'; @@ -9,7 +7,8 @@ import { onMount } from 'svelte'; import { copy } from '$lib/utils'; - export let amount, id, rate, status, text, username; + export let data; + $: ({ amount, id, rate, status, text, username } = data); $invoices[id] = { amount, id, rate, status, text, username }; |
