aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 17:09:39 -0800
committerAdam Soltys <[email protected]>2026-02-11 17:09:39 -0800
commit3aa9ce1b5985397d7f568887ec6f881df13c1034 (patch)
tree2c459692dc5315e92924de6be9f0999a835e0f54 /src/routes/(app)/fund
parent8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (diff)
downloadcoinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.tar.gz
coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.zip
fix ts errors
Diffstat (limited to 'src/routes/(app)/fund')
-rw-r--r--src/routes/(app)/fund/[id]/+page.svelte4
-rw-r--r--src/routes/(app)/fund/[id]/access/+page.svelte2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte
index 5f8d848f..c3fa7ce1 100644
--- a/src/routes/(app)/fund/[id]/+page.svelte
+++ b/src/routes/(app)/fund/[id]/+page.svelte
@@ -12,7 +12,7 @@
import { bech32 } from "@scure/base";
const encoder = new TextEncoder();
- let { data } = $props();
+ let { data }: any = $props();
let { amount, payments, managers, rate, user } = data;
let { id } = $page.params;
@@ -21,7 +21,7 @@
let currency = user ? user.currency : "CAD";
let amountFiat = $derived(parseFloat(((amount * rate) / sats).toFixed(2)));
- $effect(() => ($loginRedirect = $page.url.pathname));
+ $effect(() => { $loginRedirect = $page.url.pathname; });
let show = $state();
let toggle = () => (show = !show);
diff --git a/src/routes/(app)/fund/[id]/access/+page.svelte b/src/routes/(app)/fund/[id]/access/+page.svelte
index 9a7a85cb..24ded54e 100644
--- a/src/routes/(app)/fund/[id]/access/+page.svelte
+++ b/src/routes/(app)/fund/[id]/access/+page.svelte
@@ -15,7 +15,7 @@
m = await post(`/post/fund/${id}/managers/delete`, {
id: user.id,
});
- } catch (e) {
+ } catch (e: any) {
fail(e.message);
}
};