From 614fbd99b7963ec89666b8b4252fa5f73c81653c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 14 Nov 2024 10:55:08 -0800 Subject: amount component --- src/routes/(app)/payment/[id]/+page.svelte | 4 ++-- src/routes/(app)/payment/[id]/plain/+page.svelte | 8 ++++---- 2 files changed, 6 insertions(+), 6 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 498a3f2e..45dc8642 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -8,7 +8,7 @@ copy, f, s, - fiat, + toFiat, post, sats, fail, @@ -114,7 +114,7 @@ >{amount} - {f(fiat(amount, rate), currency)} + {f(toFiat(amount, rate), currency)} diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte index 7d5c09aa..24031e1e 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.svelte +++ b/src/routes/(app)/payment/[id]/plain/+page.svelte @@ -8,7 +8,7 @@ copy, f, s, - fiat, + toFiat, post, sats, success, @@ -42,7 +42,7 @@
Amount
- {f(fiat(a, rate), currency)} + {f(toFiat(a, rate), currency)}
@@ -50,7 +50,7 @@
Tip
- {f(fiat(tip, rate), currency)} + {f(toFiat(tip, rate), currency)} ({Math.round((tip * 100) / Math.abs(a))}%)
@@ -58,7 +58,7 @@
Total
- {f(fiat(a + (tip || 0), rate), currency)} + {f(toFiat(a + (tip || 0), rate), currency)}
{/if} -- cgit v1.2.3