From 2cc3bd2a5ab71ced121ea6e8fef3be5db2b98e4f Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 15 May 2023 21:06:06 -0600 Subject: Resuelto bug de renderizado de errores --- src/components/forms/address_form.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/forms') diff --git a/src/components/forms/address_form.tsx b/src/components/forms/address_form.tsx index d002c4e..11b0191 100644 --- a/src/components/forms/address_form.tsx +++ b/src/components/forms/address_form.tsx @@ -38,8 +38,9 @@ function getFieldProperties(address: any) { ]; for(const field of fields) { - if(sessionStorage.getItem(field.name)) + if(sessionStorage.getItem(field.name)) { field.error_message = sessionStorage.getItem(field.name); + } } return fields; @@ -47,9 +48,9 @@ function getFieldProperties(address: any) { function getCountrySelectOptions(address: any, country_code: string) { if(country_code == address.country) - return (); + return (); else - return (); + return (); } export default function AddressForm({ address }) { -- cgit v1.2.3