From 40a20ee6fa3a5d78dd899f5badc950575e64d3f5 Mon Sep 17 00:00:00 2001 From: eugenchio Date: Thu, 16 Jan 2025 11:53:50 +0200 Subject: [PATCH] Fix newsletter signup form to properly display sent status. --- layouts/partials/blog-subscribe-form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/blog-subscribe-form.html b/layouts/partials/blog-subscribe-form.html index 2ffab65..c68cb6e 100644 --- a/layouts/partials/blog-subscribe-form.html +++ b/layouts/partials/blog-subscribe-form.html @@ -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);