From 64c20c45d673fd37f7791bf240332f0813a23e78 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Mar 2026 23:02:33 -0800 Subject: icon tweaks --- src/routes/(app)/invoice/[id]/+layout.server.ts | 2 +- src/routes/(app)/payment/[id]/+page.svelte | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts index a0d7d676..f31e28f1 100644 --- a/src/routes/(app)/invoice/[id]/+layout.server.ts +++ b/src/routes/(app)/invoice/[id]/+layout.server.ts @@ -27,7 +27,7 @@ export async function load({ cookies, depends, params, url, parent }) { const aid = cookies.get("aid") || user?.id; if ( user && - (invoice.uid !== user?.id || aid !== invoice.aid) && + invoice.uid !== user?.id && !(url.pathname.includes("tip") || url.pathname.includes("memo")) && !options ) { diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 15f42a75..ff5cc9ef 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -162,7 +162,7 @@ {#if href} e.stopPropagation()} aria-label="View in explorer"> - + {/if} @@ -214,7 +214,9 @@ {@render field("payments.total", a + (tip || 0))} {/if} - {@render field("payments.networkFee", fee)} + {#if fee > 0} + {@render field("payments.networkFee", fee)} + {/if} {#if ourfee > 0} {@render field("payments.platformFee", ourfee)} -- cgit v1.2.3