Skip to content

Commit 8bc2f0c

Browse files
committed
Fix flashing submit button
1 parent 2125469 commit 8bc2f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/components/contact.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function ContactComponent() {
1818
placeholder: 'Contact us here...',
1919
})
2020

21-
const hideButton = editor?.getText().length == 0
21+
const showButton = !!editor?.getText().length
2222

2323
return (
2424
<Col className="mx-2">
@@ -29,7 +29,7 @@ export function ContactComponent() {
2929
editor={editor}
3030
/>
3131
</div>
32-
{!hideButton && (
32+
{showButton && (
3333
<Row className="right-1 justify-between gap-2">
3434
<Button
3535
size="xs"

0 commit comments

Comments
 (0)