diff options
| author | Adam Soltys <[email protected]> | 2024-02-23 14:03:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-23 14:03:32 -0800 |
| commit | 2761dc2c21ebf744591679b282502299ac731a96 (patch) | |
| tree | 486ea7cb6c410f80647086ec846c2cc6e692a26a | |
| parent | 77edd3031ee37c78d38b3b6abffb952e31276b10 (diff) | |
| download | coinos-ui-2761dc2c21ebf744591679b282502299ac731a96.tar.gz coinos-ui-2761dc2c21ebf744591679b282502299ac731a96.zip | |
check for pay button
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 2 |
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 () => { |
