From d0de025d96f11deb17b79faf3c32237d5df85222 Mon Sep 17 00:00:00 2001 From: smanylov Date: Sun, 4 Jan 2026 14:42:59 +0700 Subject: [PATCH] split error messages on new lines --- src/app/ui/forms/register-form.tsx | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/app/ui/forms/register-form.tsx b/src/app/ui/forms/register-form.tsx index c990c9e..89e52b9 100644 --- a/src/app/ui/forms/register-form.tsx +++ b/src/app/ui/forms/register-form.tsx @@ -121,8 +121,13 @@ export default function RegisterForm() { {formState?.error?.fullName && (

{ - formState?.error?.fullName.split('&').map((e) => { - return t(e) + " " + formState?.error?.fullName.split('&').map((e, index) => { + return ( + + {t(e)} +
+
+ ) }) }

@@ -148,8 +153,13 @@ export default function RegisterForm() { {formState?.error?.email && (

{ - formState?.error?.email.split('&').map((e) => { - return t(e) + " " + formState?.error?.email.split('&').map((e, index) => { + return ( + + {t(e)} +
+
+ ) }) }

@@ -213,8 +223,13 @@ export default function RegisterForm() { {formState?.error?.password && (

{ - formState?.error?.password.split('&').map((e) => { - return t(e) + formState?.error?.password.split('&').map((e, index) => { + return ( + + {t(e)} +
+
+ ) }) }