aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-12 10:47:59 -0800
committerAdam Soltys <[email protected]>2024-12-12 10:47:59 -0800
commit0916c812a85be30c9ce3935475f435a67857a06b (patch)
tree7f173f6a7f30e8a73f337ec11f0c480ca424575f /src
parent57e333825cf2b0eab65c122678c112252efcbae1 (diff)
downloadcoinos-ui-0916c812a85be30c9ce3935475f435a67857a06b.tar.gz
coinos-ui-0916c812a85be30c9ce3935475f435a67857a06b.zip
fix checkmark when not logged in
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/invoice/[id]/+page.svelte2
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.ts6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte
index 58178125..8ad555bb 100644
--- a/src/routes/(app)/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/invoice/[id]/+page.svelte
@@ -51,7 +51,7 @@
// console.log(e);
// });
- let subbed = {};
+ let subbed = false;
onMount(async () => {
if (browser) {
diff --git a/src/routes/(app)/send/[...text]/+page.server.ts b/src/routes/(app)/send/[...text]/+page.server.ts
index b24ec1e3..cd259733 100644
--- a/src/routes/(app)/send/[...text]/+page.server.ts
+++ b/src/routes/(app)/send/[...text]/+page.server.ts
@@ -1,9 +1,11 @@
import parse from "$lib/parse";
import { auth, fd, get } from "$lib/utils";
-import { fail } from "@sveltejs/kit";
+import { fail, redirect } from "@sveltejs/kit";
const limit = 10;
-export async function load({ cookies, params, url }) {
+export async function load({ cookies, params, parent, url }) {
+ const { user } = await parent();
+ if (!user) redirect(307, "/login");
const { text } = params;
await parse(text, url.host);