@mychoice/mychoice-sdk-store 2.1.58 → 2.1.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -6076,13 +6076,7 @@ const useValidationAddress = () => {
6076
6076
  const isHomeOwner = insuranceType === InsuranceTypes.Home;
6077
6077
  const addressFormValidate = async (isRedirect = true) => {
6078
6078
  let formIsValid = false;
6079
- const postalKeys = [
6080
- 'errorMessage',
6081
- 'streetAddress',
6082
- 'city',
6083
- 'postalCode',
6084
- 'provinceCode',
6085
- ];
6079
+ const postalKeys = ['errorMessage', 'streetAddress', 'city', 'postalCode', 'provinceCode'];
6086
6080
  const dwellingKeys = ['type'];
6087
6081
  const errors = [];
6088
6082
  dispatchPostalState({
@@ -6095,9 +6089,7 @@ const useValidationAddress = () => {
6095
6089
  }
6096
6090
  });
6097
6091
  Object.keys(postalState.item).forEach((key) => {
6098
- if (postalKeys.includes(key) &&
6099
- !postalState.item[key] &&
6100
- key !== 'errorMessage') {
6092
+ if (postalKeys.includes(key) && !postalState.item[key] && key !== 'errorMessage') {
6101
6093
  errors.push(key);
6102
6094
  }
6103
6095
  if (key === 'errorMessage' && postalState.item[key]) {