diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 21:22:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 21:22:41 -0800 |
| commit | 7c4d393feaf9c594fa6bdae274abc0edd45c3373 (patch) | |
| tree | 74ea34dbbc9b7399b910ae92af9208f2c787ecde /src/routes/(app)/payments | |
| parent | 90f29dce3d675f850e48ede2edb187e6c53b84da (diff) | |
| download | coinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.tar.gz coinos-ui-7c4d393feaf9c594fa6bdae274abc0edd45c3373.zip | |
offline mode
Diffstat (limited to 'src/routes/(app)/payments')
| -rw-r--r-- | src/routes/(app)/payments/[...page]/+page.svelte | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte index 1d5a0407..afce7711 100644 --- a/src/routes/(app)/payments/[...page]/+page.svelte +++ b/src/routes/(app)/payments/[...page]/+page.svelte @@ -3,7 +3,7 @@ import Payments from "$comp/Payments.svelte"; import { onMount } from "svelte"; import { format } from "date-fns"; - import { newPayment } from "$lib/store"; + import { newPayment, cachedPayments } from "$lib/store"; import { t } from "$lib/translations"; import { get, f, s, si, sat, loc, sats, types } from "$lib/utils"; import { page } from "$app/stores"; @@ -55,6 +55,9 @@ invalidate(`/users/${user.username}`); } }); + $effect(() => { + if (payments?.length && (!p || p === "1")) $cachedPayments = payments; + }); let path = $derived( $page.params.page |
