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)/send/lightning/[payreq]/+page.server.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/routes/(app)/send') 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