Skip to content

Commit 1af9452

Browse files
committed
Fix MailSupport form status visibility
1 parent f99e722 commit 1af9452

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/pages/tools/mailsupport.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ const faqs = [
399399
});
400400

401401
function showCaptureError(message) {
402+
captureSuccess.hidden = true;
402403
captureErrorText.textContent = message;
403404
captureError.hidden = false;
404405
const submitBtn = captureForm.querySelector('button[type="submit"]');
@@ -444,6 +445,7 @@ const faqs = [
444445

445446
if (response.ok && result.success) {
446447
captureForm.hidden = true;
448+
captureError.hidden = true;
447449
captureSuccess.hidden = false;
448450
} else {
449451
showCaptureError(result.message || 'Something went wrong. Please try again, or email hello@simplebytes.com.');
@@ -741,6 +743,11 @@ const faqs = [
741743
max-width: 560px;
742744
}
743745

746+
.capture-form[hidden],
747+
.capture-message[hidden] {
748+
display: none;
749+
}
750+
744751
.plan-toggle {
745752
display: inline-flex;
746753
flex-wrap: wrap;

0 commit comments

Comments
 (0)