Skip to content

Commit

Permalink
Update waitlist error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjreinhart committed Jan 22, 2024
1 parent b61fc98 commit 73cb296
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/WaitlistDialog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ import XIcon from "../components/icons/X.astro";
},
});
response.json().then((data) => {
if (data.error && data.error.message.includes("duplicate key")) {
showToast("You're already on the waitlist!");
} else {
if (data.success) {
showToast("You're on the waitlist!");
} else {
showToast(data.error.message);
}
});
dialog?.close();
Expand Down

0 comments on commit 73cb296

Please sign in to comment.