Skip to content

Commit

Permalink
Fix newsletter signup form to properly display sent status.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenchio committed Jan 16, 2025
1 parent 5b9fa36 commit 40a20ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/blog-subscribe-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
body: JSON.stringify(data),
});
const result = await response.json();
this.formSent = result.status === 'ok';
this.formSent = result.success === true;
} else {
await new Promise((resolve) => setTimeout(resolve, 2000));
console.log(data);
Expand Down

0 comments on commit 40a20ee

Please sign in to comment.