From 388f820bfc073efb4f66c1aa2394fa5a4b8a8709 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 23 Feb 2023 15:47:31 -0800 Subject: show tips for sender --- src/routes/(app)/payment/[id]/+page.svelte | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/routes/(app)/payment') diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 2988ddb5..b8a23605 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -8,7 +8,7 @@ export let data; let { user, payment: p } = data; let { username } = user; - let { id, amount, created, rate, type, ref, ourfee, fee, currency } = p; + let { id, amount, created, rate, type, ref, tip, ourfee, fee, currency } = p; let a = Math.abs(amount); fee = fee || 0; @@ -26,12 +26,14 @@ {#if p.with}
{amount > 0 ? 'From' : 'To'} +
-
{p.with.username}
+
{p.with.username}
+
{/if} @@ -39,7 +41,19 @@ Amount
{f(fiat(a, rate), currency)} - ⚡️{`${s(a)}`} + {#if tip} + + + {f(fiat(tip, rate), currency)} + + {/if} + ⚡️{`${s(a)}`} + + {#if tip} + + + ⚡️{s(tip)} + + {/if} +
-- cgit v1.2.3