From 8bc2f0c40eef72b0c494605485565f4ef68c6aa6 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 21 Oct 2025 12:36:54 +0200 Subject: [PATCH] Fix flashing submit button --- web/components/contact.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/contact.tsx b/web/components/contact.tsx index 95467ce2..f073ef67 100644 --- a/web/components/contact.tsx +++ b/web/components/contact.tsx @@ -18,7 +18,7 @@ export function ContactComponent() { placeholder: 'Contact us here...', }) - const hideButton = editor?.getText().length == 0 + const showButton = !!editor?.getText().length return ( @@ -29,7 +29,7 @@ export function ContactComponent() { editor={editor} /> - {!hideButton && ( + {showButton && (