update validation

This commit is contained in:
smanylov
2026-01-10 15:12:51 +07:00
parent b5754b75a8
commit 31af7036a3
7 changed files with 316 additions and 96 deletions
+10 -1
View File
@@ -176,7 +176,16 @@ export default function RegisterForm() {
<PhoneInput phoneState={formState?.previousState?.phone} validateHandler={onChangeHandler} />
{formState?.error?.phone && (
<p className="text-sm text-red-500">
{t(formState?.error?.phone)}
{
formState?.error?.phone.split('&').map((e, index) => {
return (
<span key={index}>
{t(e)}
<br />
</span>
)
})
}
</p>
)}
</div>