From 338770c1081ea308a5176d84c99717563252fdfe Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 1 Nov 2024 14:45:04 -0700 Subject: focus start button --- src/routes/(app)/invoice/[id]/tip/+page.svelte | 21 +++++++++++++++------ .../(app)/send/lightning/[payreq]/+page.server.ts | 8 ++++++-- 2 files changed, 21 insertions(+), 8 deletions(-) (limited to 'src/routes') diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte index da2d041e..217b8474 100644 --- a/src/routes/(app)/invoice/[id]/tip/+page.svelte +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -153,12 +153,21 @@ {:else} - {#each tipAmounts as amount} - + {#each tipAmounts as amount, i} + {#if i === 0} + + {:else} + + {/if} {/each} {/if} diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.server.ts b/src/routes/(app)/send/lightning/[payreq]/+page.server.ts index 0df87255..a101b803 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.server.ts +++ b/src/routes/(app)/send/lightning/[payreq]/+page.server.ts @@ -1,5 +1,5 @@ +import { auth, fd, post } from "$lib/utils"; import { fail, redirect } from "@sveltejs/kit"; -import { fd, auth, post } from "$lib/utils"; export async function load({ cookies, params }) { return post("/parse", params, auth(cookies)); @@ -15,7 +15,11 @@ export const actions = { p = await post("/payments", body, auth(cookies)); } catch (e: any) { - if (e.message.includes("unusable") || e.message.includes("routes")) + if ( + e.message.includes("unusable") || + e.message.includes("routes") || + e.message.includes("minflow") + ) e.message = "payments.failedToRoute"; return fail(400, { message: e.message }); } -- cgit v1.2.3