mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-27 14:55:20 +03:00
fix for email subscribing.
This commit is contained in:
parent
ee84d18cb8
commit
4255d9bc5a
@ -11,12 +11,10 @@ const SubscribeForm = ({ className, inputBgColor }) => {
|
||||
// NOTE(matija): without this, the whole page reloads on form submission.
|
||||
event.preventDefault()
|
||||
|
||||
console.log('going to submit an email!')
|
||||
|
||||
try {
|
||||
const res = await fetch(createNewEmailSubscriberApiEndpoint, {
|
||||
method: "POST",
|
||||
body: 'userGroup=&email=' + 'matija.sosic@gmail.com',
|
||||
body: 'userGroup=&email=' + email,
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user