aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/lightning
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/send/lightning')
-rw-r--r--src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte
index bc9e72b6..4dfaabc2 100644
--- a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte
+++ b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte
@@ -7,7 +7,7 @@
import Spinner from "$comp/Spinner.svelte";
import { page } from "$app/stores";
import { loc, back, toFiat, f, s, focus } from "$lib/utils";
- import { rate, pin } from "$lib/store";
+ import { fiat, rate, pin } from "$lib/store";
let { data, form } = $props();
@@ -64,10 +64,13 @@
<div class="flex flex-wrap gap-4 justify-center">
<div class="my-auto">
- <h2 class="text-xl">
- {f(toFiat(ourfee, $rate), currency)}
- </h2>
- <h3 class="text-secondary">⚡️{s(ourfee)}</h3>
+ {#if $fiat}
+ <h2 class="text-xl">
+ {f(toFiat(ourfee, $rate), currency)}
+ </h2>
+ {:else}
+ <h3 class="text-secondary">⚡️{s(ourfee)}</h3>
+ {/if}
</div>
</div>
</div>