homeflowjs 1.0.48 → 1.0.49

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.
@@ -81,7 +81,7 @@ export const createUser = (payload, recaptchaData = {}) => (dispatch, getState)
81
81
 
82
82
  let promises = [];
83
83
 
84
- if (serializedSavedProperties) {
84
+ if (serializedSavedProperties && serializedSavedProperties !== '[]') {
85
85
  const localSavedProperties = JSON.parse(serializedSavedProperties);
86
86
  const savedPropertyIDs = localSavedProperties.map((property) => property.property_id).join(',');
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -17,6 +17,7 @@ const UserRegisterForm = (props) => {
17
17
  doNotContact,
18
18
  marketingStatement,
19
19
  redirectHash,
20
+ withRecaptcha,
20
21
  ...otherProps
21
22
  } = props;
22
23
 
@@ -80,7 +81,7 @@ const UserRegisterForm = (props) => {
80
81
  if (validateForm()) {
81
82
  setLoading({ userRegister: true });
82
83
  setIsRequestCompleted(false);
83
- onRecaptchaRender();
84
+ withRecaptcha ? onRecaptchaRender() : onRecaptchaSubmit()
84
85
  }
85
86
  };
86
87
 
@@ -119,12 +120,14 @@ UserRegisterForm.propTypes = {
119
120
  doNotContact: PropTypes.bool,
120
121
  marketingStatement: PropTypes.string,
121
122
  redirectHash: PropTypes.string,
123
+ withRecaptcha: PropTypes.bool,
122
124
  };
123
125
 
124
126
  UserRegisterForm.defaultProps = {
125
127
  doNotContact: false,
126
128
  marketingStatement: 'Marketing preferences communications', // TODO: get generic message and all themes to supply statement.
127
129
  redirectHash: null,
130
+ withRecaptcha: true,
128
131
  };
129
132
 
130
133
  const mapStateToProps = (state) => ({