aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/+layout.svelte2
-rw-r--r--src/routes/(app)/[username]/receive/+page.server.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte
index 2896a958..6624fff8 100644
--- a/src/routes/(app)/+layout.svelte
+++ b/src/routes/(app)/+layout.svelte
@@ -76,9 +76,7 @@
if (user) {
const wallet = await getWallet();
- console.log("WALL", wallet);
if (wallet) wallet.notifyIncomingFunds(handleArkPayment);
- console.log("YEAH");
}
// if (window.NDEFReader) {
diff --git a/src/routes/(app)/[username]/receive/+page.server.js b/src/routes/(app)/[username]/receive/+page.server.js
index 52b38a1f..777c1dd7 100644
--- a/src/routes/(app)/[username]/receive/+page.server.js
+++ b/src/routes/(app)/[username]/receive/+page.server.js
@@ -7,7 +7,8 @@ export const load = async ({ cookies, params: { username }, parent, url }) => {
if (!token) redirect(307, `/pay/${username}`);
const { subject, user } = await parent();
const aid = cookies.get("aid");
- if (aid && user?.aid !== aid) redirect(307, "/invoice");
+
+ if (aid && user?.id !== aid) redirect(307, "/invoice");
return {
rate: rates[subject.currency],
text: `${username}@${url.host}`,