nice success message
This commit is contained in:
parent
564dcb8083
commit
bee8218e40
2 changed files with 19 additions and 9 deletions
|
|
@ -48,13 +48,19 @@ async function acceptInvite() {
|
|||
return;
|
||||
}
|
||||
|
||||
const verifyResponse = await fetch("/api/signup/nostr-verify", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(signedEvent),
|
||||
});
|
||||
|
||||
if (verifyResponse.status === 200) {
|
||||
|
||||
let verifyResponse;
|
||||
try {
|
||||
verifyResponse = await fetch("/api/signup/nostr-verify", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(signedEvent),
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(`Something went wrong: ${error}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (verifyResponse.ok) {
|
||||
document.querySelector('#sign-up-success').style.display = 'block';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue