Skip to content

Commit 99ff547

Browse files
authored
Prevent empty email (#145)
1 parent 8282701 commit 99ff547

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_static/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ document.addEventListener('DOMContentLoaded', function() {
4545
event.preventDefault();
4646
const formData = new FormData(form);
4747
const email = formData.get('email');
48+
if (!email) return;
4849
try {
4950
const response = await fetch('https://state-of-open-source-ai.vercel.app/api/add-member', {
5051
method: 'POST',

0 commit comments

Comments
 (0)