Report stampts being spent correctly

This commit is contained in:
Tracker-Friendly 2024-07-30 15:37:37 +01:00
parent b0db982e98
commit 0f8c3a68b4
1 changed files with 5 additions and 4 deletions

View File

@ -151,14 +151,15 @@ signupButton.addEventListener("click", () => {
await new Promise(r => setTimeout(r, 200))
window.location.href = "/app/"
} else if (response.status === 409) {
if (responseData["error"] === "Stamp already spent" {
statusBox.innerText = "Pure bad luck... your PoW challenge was accepted, but someone else used the same PoW challenge as you. Please try again. (error: Stamp already spent)"
} else {
statusBox.innerText = "Username already taken!"
}
showElements(true)
} else if (response.status === 429) {
statusBox.innerText = "Please don't sign up to new accounts that quickly. If you are using a VPN, please turn it off!"
showElements(true)
} else if (response.status === 409) {
statusBox.innerText = "Pure bad luck... your PoW challenge was accepted, but someone else used the same PoW challenge as you. Please try again. (error: " + responseData["error"] + ")"
showElements(true)
} else if (response.status === 500) {
statusBox.innerText = responseData["error"]
showElements(true)