aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-23 14:03:32 -0800
committerAdam Soltys <[email protected]>2024-02-23 14:03:32 -0800
commitc0043f00f181072baff6bc6208d310055a219f8f (patch)
tree486ea7cb6c410f80647086ec846c2cc6e692a26a /src
parent5887d6ae20839ae5868ad078511f35c391804336 (diff)
downloadcoinos-ui-c0043f00f181072baff6bc6208d310055a219f8f.tar.gz
coinos-ui-c0043f00f181072baff6bc6208d310055a219f8f.zip
check for pay button
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index c473619a..99029d09 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -73,7 +73,7 @@
$: if (total > 0 && browser) {
let payButton = document.querySelector("#payButton");
- payButton.addEventListener("click", checkout);
+ if (payButton) payButton.addEventListener("click", checkout);
}
let checkout = async () => {