summaryrefslogtreecommitdiff
path: root/src/components/forms
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-05-15 21:06:06 -0600
committerHombreLaser <sebastian-440@live.com>2023-05-15 21:06:06 -0600
commit2cc3bd2a5ab71ced121ea6e8fef3be5db2b98e4f (patch)
tree9da7b35b5e44e071dc44b7fb5cb54b1cff45994a /src/components/forms
parentd138c15dcd4272cd2358d28867ef35d1550b39cd (diff)
Resuelto bug de renderizado de errores
Diffstat (limited to 'src/components/forms')
-rw-r--r--src/components/forms/address_form.tsx7
1 files changed, 4 insertions, 3 deletions
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 (<option value={ country_code } selected>{ countryList().getLabel(country_code) }</option>);
+ return (<option key={ country_code } value={ country_code } selected>{ countryList().getLabel(country_code) }</option>);
else
- return (<option value={ country_code }>{ countryList().getLabel(country_code) }</option>);
+ return (<option key={ country_code } value={ country_code }>{ countryList().getLabel(country_code) }</option>);
}
export default function AddressForm({ address }) {