diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/forms/address_form.tsx | 7 |
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 }) { |