-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact form #221
Contact form #221
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Make sure to request review when you're ready to merge |
src/server/api/contact.ts
Outdated
html: formHTML, | ||
}), | ||
}); | ||
console.log(resp.status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove/comment out the console logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove/comment out the console log statements and I'll merge. Looks good otherwise!
body: JSON.stringify(data), | ||
}); | ||
if (!resp.ok) { | ||
throw new Error(`Response status: ${resp.status}"`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice if we had a toast for errors but I guess it's not too necessary if our API endpoint is reliable
Do we also want to email the form submitter a confirmation email? Maybe it's not necessary, just a random thought :) |
Adds functionality to contact form on 'About' page of website