Skip to content

Commit

Permalink
fix join us form
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkarrot committed Dec 16, 2024
1 parent d956422 commit 71a0ac7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/IndivForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
mentor: mentor ? 'yes' : 'no',
};
// console.log(formData)
// console.log(formData)
const response = await fetch('/api/new-user', {
method: 'POST',
Expand All @@ -46,11 +46,14 @@
},
body: JSON.stringify(formData),
});
//console.log("response: ", response.ok)
if (response.ok) {
let body = await response.json()
invoiceRequest = body.invoiceRequest;
// Generate QR code
invoiceRequest = body.invoice;
// console.log("invoiceRequest: ", invoiceRequest)
// Generate QR code
QRCode.toDataURL(invoiceRequest, function (err, url) {
if (err) console.error(err);
qrCodeData = url;
Expand Down Expand Up @@ -115,7 +118,7 @@
<input type="email" id="email" bind:value={email} required />
</div>
<div class="input-wrapper">
<label for="twitter">Twitter or Nostr npub</label>
<label for="twitter">Nostr npub or X/Twitter</label>
<input type="text" id="twitter" bind:value={twitter} />
</div>

Expand Down

0 comments on commit 71a0ac7

Please sign in to comment.