Skip to content

Commit

Permalink
Prevent empty email (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph authored Mar 19, 2024
1 parent 8282701 commit 99ff547
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ document.addEventListener('DOMContentLoaded', function() {
event.preventDefault();
const formData = new FormData(form);
const email = formData.get('email');
if (!email) return;
try {
const response = await fetch('https://state-of-open-source-ai.vercel.app/api/add-member', {
method: 'POST',
Expand Down

0 comments on commit 99ff547

Please sign in to comment.