From 1bfd9780998dbab04e0b2cdbf7e82da39336489d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 27 Nov 2024 08:51:53 -0800 Subject: warnings --- src/routes/(app)/payment/[id]/+page.svelte | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 6171dce9..85821fee 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -41,12 +41,14 @@ currency, } = $derived(p); let [txid, vout] = $derived(amount > 0 ? ref.split(":") : [hash]); - let a = Math.abs(amount); + let a = $derived(Math.abs(amount)); - let expl = { - bitcoin: PUBLIC_EXPLORER, - liquid: PUBLIC_LIQUID_EXPLORER, - }[type]; + let expl = $derived( + { + bitcoin: PUBLIC_EXPLORER, + liquid: PUBLIC_LIQUID_EXPLORER, + }[type], + ); let print = async () => { await post(`/payment/${id}/print`, { id }); @@ -92,15 +94,15 @@ {#if p.with} -
goto(`/${p.with.username}`)}> + {direction}
- +
{p.with.username}
-
+ {/if} {#if p.type === types.fund}
@@ -140,7 +142,7 @@ {#if type === types.ecash && amount < 0} -- cgit v1.2.3