diff options
| author | Adam Soltys <[email protected]> | 2026-03-13 15:51:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-13 15:51:04 -0700 |
| commit | 3f5cfd89182cb1a2e5927fd2ad27ebac5e2f257b (patch) | |
| tree | 175bdd6d0b401c72264113bcd80abd86488d3b4a /src | |
| parent | 2a6a681a80a3865beef5c4cbe7f6f84db915fa34 (diff) | |
| download | coinos-ui-3f5cfd89182cb1a2e5927fd2ad27ebac5e2f257b.tar.gz coinos-ui-3f5cfd89182cb1a2e5927fd2ad27ebac5e2f257b.zip | |
svelte fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/InvoiceData.svelte | 4 | ||||
| -rw-r--r-- | src/lib/mls-relay.ts | 1 | ||||
| -rw-r--r-- | src/routes/(app)/invoice/+page.server.ts | 6 | ||||
| -rw-r--r-- | src/routes/(app)/settings/account/+page.svelte | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index a613256b..847d6f62 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -25,8 +25,8 @@ let { memo } = $derived(invoice); let qrSrc = $derived(`/qr/${encodeURIComponent(invoice.text)}/raw`); - let srcs: string[] = $state(qrDataUrl ? [qrDataUrl] : []); - let lastDataUrl = qrDataUrl; + let srcs: string[] = $state([]); + let lastDataUrl: string | undefined; $effect(() => { // Update if the server-provided data URL changed (e.g. new invoice) diff --git a/src/lib/mls-relay.ts b/src/lib/mls-relay.ts index bdd33935..be89ef11 100644 --- a/src/lib/mls-relay.ts +++ b/src/lib/mls-relay.ts @@ -667,7 +667,6 @@ export async function subscribeToMessages( try { const relay = await Relay.connect(url, { enableReconnect: true, - timeout: 5000, }); connectedRelays.push(relay); diff --git a/src/routes/(app)/invoice/+page.server.ts b/src/routes/(app)/invoice/+page.server.ts index db54ff8b..ef042111 100644 --- a/src/routes/(app)/invoice/+page.server.ts +++ b/src/routes/(app)/invoice/+page.server.ts @@ -6,7 +6,7 @@ import { error, redirect } from "@sveltejs/kit"; export const load = async ({ cookies, parent, url }) => { const aid = url.searchParams.get("aid") || cookies.get("aid"); if (aid) cookies.set("aid", aid, { path: "/", maxAge: 86400, httpOnly: false }); - let { subject, user } = await parent(); + let { user } = await parent(); const lnurl = url.searchParams.has("lnurl"); if (lnurl) { @@ -20,13 +20,11 @@ export const load = async ({ cookies, parent, url }) => { let invoice: Invoice = { aid: aid || "", - rate: rates[user?.currency || subject?.currency], + rate: rates[user?.currency], ...(type && { type }), ...(address_type && { address_type }), }; - if (!user) user = subject; - try { invoice = await post("/invoice", { invoice, aid, user }, auth(cookies)); } catch (e) { diff --git a/src/routes/(app)/settings/account/+page.svelte b/src/routes/(app)/settings/account/+page.svelte index c60d927f..f878dbd8 100644 --- a/src/routes/(app)/settings/account/+page.svelte +++ b/src/routes/(app)/settings/account/+page.svelte @@ -21,7 +21,7 @@ let fiats = $derived(Object.keys(rates).sort((a, b) => a.localeCompare(b))); - let push = $state(), + let push: boolean = $state(false), pm: any = $state(), subscription: any; |
