@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/cjs/index.js CHANGED
@@ -6085,13 +6085,7 @@ const useValidationAddress = () => {
6085
6085
  const isHomeOwner = insuranceType === mychoiceSdkComponents.InsuranceTypes.Home;
6086
6086
  const addressFormValidate = async (isRedirect = true) => {
6087
6087
  let formIsValid = false;
6088
- const postalKeys = [
6089
- 'errorMessage',
6090
- 'streetAddress',
6091
- 'city',
6092
- 'postalCode',
6093
- 'provinceCode',
6094
- ];
6088
+ const postalKeys = ['errorMessage', 'streetAddress', 'city', 'postalCode', 'provinceCode'];
6095
6089
  const dwellingKeys = ['type'];
6096
6090
  const errors = [];
6097
6091
  dispatchPostalState({
@@ -6104,9 +6098,7 @@ const useValidationAddress = () => {
6104
6098
  }
6105
6099
  });
6106
6100
  Object.keys(postalState.item).forEach((key) => {
6107
- if (postalKeys.includes(key) &&
6108
- !postalState.item[key] &&
6109
- key !== 'errorMessage') {
6101
+ if (postalKeys.includes(key) && !postalState.item[key] && key !== 'errorMessage') {
6110
6102
  errors.push(key);
6111
6103
  }
6112
6104
  if (key === 'errorMessage' && postalState.item[key]) {