aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-31 15:23:49 -0700
committerAdam Soltys <[email protected]>2024-08-31 15:23:49 -0700
commita89d4ee9b9bf0c15505a58803585f1847731983e (patch)
tree46098814beabc79de334898dbc4808aed8d5f329 /src/routes/(app)/fund
parentdf71664f20312e81134ee90ad561f55d3020ee0a (diff)
downloadcoinos-ui-a89d4ee9b9bf0c15505a58803585f1847731983e.tar.gz
coinos-ui-a89d4ee9b9bf0c15505a58803585f1847731983e.zip
typescript
Diffstat (limited to 'src/routes/(app)/fund')
-rw-r--r--src/routes/(app)/fund/[id]/+page.server.ts4
-rw-r--r--src/routes/(app)/fund/[id]/withdraw/+page.server.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.server.ts b/src/routes/(app)/fund/[id]/+page.server.ts
index c5c8db2f..e553b1b4 100644
--- a/src/routes/(app)/fund/[id]/+page.server.ts
+++ b/src/routes/(app)/fund/[id]/+page.server.ts
@@ -1,4 +1,4 @@
-import { error, redirect } from "@sveltejs/kit";
+import { redirect } from "@sveltejs/kit";
import { auth, get, post } from "$lib/utils";
import Qr from "qrcode-base64";
@@ -10,7 +10,7 @@ export let load = async ({ params: { id }, url }) => {
};
export const actions = {
- default: async ({ cookies, locals, params, request }) => {
+ default: async ({ cookies, locals, params }) => {
let { user } = locals;
if (user) {
diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.server.ts b/src/routes/(app)/fund/[id]/withdraw/+page.server.ts
index 1da349f8..f0379153 100644
--- a/src/routes/(app)/fund/[id]/withdraw/+page.server.ts
+++ b/src/routes/(app)/fund/[id]/withdraw/+page.server.ts
@@ -1,4 +1,4 @@
-import { fail, json, redirect } from "@sveltejs/kit";
+import { fail, redirect } from "@sveltejs/kit";
import { fd, auth, post } from "$lib/utils";
export async function load({ parent }) {
@@ -11,7 +11,7 @@ export const actions = {
let body = await fd(request);
try {
await post("/take", body, auth(cookies));
- } catch (e) {
+ } catch (e: any) {
return fail(400, { message: e.message });
}