diff --git a/src/routes/transfer/+page.svelte b/src/routes/transfer/+page.svelte index 532f455..602884a 100644 --- a/src/routes/transfer/+page.svelte +++ b/src/routes/transfer/+page.svelte @@ -22,11 +22,14 @@ onMount(async () => { await fetchCategories(); - await fetchCards(); + await fetchCards(true); }); - async function fetchCards() { - const result = await fetch("/api/card/all"); + async function fetchCards(preloadCurrencies = false) { + const queryParams = new URLSearchParams({ + preload_currencies: preloadCurrencies.toString(), + }); + const result = await fetch(`/api/card/all?${queryParams}`); if (!result.ok) { const obj = await result.json(); error = obj.message;