diff --git a/app/page.tsx b/app/page.tsx index 760786a..1810331 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -80,26 +80,30 @@ export default function Home() { } return ( -
- - ( - - - - - - - )} - /> - - - +
+
+ + ( + + + + + + + )} + /> +
+ +
+ + +
); } diff --git a/app/unsubscribe/page.tsx b/app/unsubscribe/page.tsx index 88563fa..47f469d 100644 --- a/app/unsubscribe/page.tsx +++ b/app/unsubscribe/page.tsx @@ -80,26 +80,30 @@ export default function Unsubscribe() { } return ( -
- - ( - - - - - - - )} - /> - - - +
+
+ + ( + + + + + + + )} + /> +
+ +
+ + +
); } diff --git a/components/ui/form.tsx b/components/ui/form.tsx index 307f911..c7d2445 100644 --- a/components/ui/form.tsx +++ b/components/ui/form.tsx @@ -133,7 +133,7 @@ const FormDescription = React.forwardRef<

); @@ -147,21 +147,22 @@ const FormMessage = React.forwardRef< const { error, formMessageId } = useFormField(); const body = error ? String(error?.message) : children; - if (!body) { - return null; - } - return ( -

- {body} -

+ <> + {!body ? null : ( +

+ {body} +

+ )} + ); }); + FormMessage.displayName = 'FormMessage'; export {