From 5757ef30eb664441e023396cae5a7f8b5db409ff Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 29 Jul 2025 13:36:05 -0700 Subject: detect fund updates --- src/routes/(app)/payment/[id]/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/routes/(app)/payment') diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index fcde487b..0667291e 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -67,7 +67,9 @@ let direction = $state(""); onMount(() => { - direction = amount > 0 ? $t("payments.from") : $t("payments.to"); + let a = amount; + if (type === types.fund) a = 0 - a; + direction = a > 0 ? $t("payments.from") : $t("payments.to"); if (direction) direction = -- cgit v1.2.3