diff options
| author | Adam Soltys <[email protected]> | 2024-11-01 14:45:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-01 14:45:06 -0700 |
| commit | ba185fae48a70d49521b6e0cb4371b126f295022 (patch) | |
| tree | a188f7dddc8dd64f06d7ed3ef50023955720c9d8 /src/routes/(app)/send | |
| parent | d7fd16243c7c6f6260cc2958abc0cb60f50deef9 (diff) | |
| download | coinos-ui-ba185fae48a70d49521b6e0cb4371b126f295022.tar.gz coinos-ui-ba185fae48a70d49521b6e0cb4371b126f295022.zip | |
focus start button
Diffstat (limited to 'src/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/lightning/[payreq]/+page.server.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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 }); } |
