diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index c20c80a0..f2c94ade 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -7,12 +7,7 @@
import DarkToggle from "$comp/DarkToggle.svelte";
import LocaleSelector from "$comp/LocaleSelector.svelte";
- let {
- howItWorks,
- faq,
- about,
- user
- } = $props();
+ let { howItWorks, faq, about, user } = $props();
let showMobileMenu = $state(false);
let header = $state();
@@ -28,7 +23,7 @@
>
- import { run } from 'svelte/legacy';
+ import { run } from "svelte/legacy";
import { t } from "$lib/translations";
import { enhance } from "$app/forms";
@@ -7,20 +7,12 @@
import Spinner from "$comp/Spinner.svelte";
import { pin } from "$lib/store";
- let {
- data,
- form,
- send = $bindable(),
- comment = $bindable()
- } = $props();
+ let { data, form, send = $bindable(), comment = $bindable() } = $props();
let { currency } = data.user;
let { minSendable, maxSendable, commentAllowed, callback, metadata, rates } =
data;
- let rate;
- run(() => {
- rate = rates[currency];
- });
+ let rate = $derived(rates[currency]);
let amount = $state(Math.round(minSendable / 1000)),
loading = $state();
@@ -63,7 +55,7 @@
class="w-full p-4 border rounded-xl h-32 text-xl"
bind:value={comment}
autocapitalize="none"
->
+ >
{/if}
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index 50aa1488..a9b6695a 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -1,6 +1,4 @@
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index 36223b75..c47dbf49 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -263,6 +263,7 @@
>