@aclymatepackages/modules 5.0.4 → 5.0.6

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.
@@ -108,7 +108,7 @@ const PlacesAutocomplete = _ref => {
108
108
  helperText: helperText,
109
109
  style: style
110
110
  }, textFieldProps)),
111
- getOptionSelected: (option, value) => {
111
+ isOptionEqualToValue: (option, value) => {
112
112
  return option === "" || option.description === value.description || option === value;
113
113
  },
114
114
  value: place || "",
@@ -165,6 +165,9 @@ const PlacesAutocomplete = _ref => {
165
165
  color: "textSecondary"
166
166
  }, option === null || option === void 0 || (_option$structured_fo3 = option.structured_formatting) === null || _option$structured_fo3 === void 0 ? void 0 : _option$structured_fo3.secondary_text))));
167
167
  }
168
+ if (typeof option !== "string") {
169
+ return null;
170
+ }
168
171
  return /*#__PURE__*/_react.default.createElement("li", props, option);
169
172
  }
170
173
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -96,7 +96,7 @@ const PlacesAutocomplete = ({
96
96
  {...textFieldProps}
97
97
  />
98
98
  )}
99
- getOptionSelected={(option, value) => {
99
+ isOptionEqualToValue={(option, value) => {
100
100
  return (
101
101
  option === "" ||
102
102
  option.description === value.description ||
@@ -166,6 +166,9 @@ const PlacesAutocomplete = ({
166
166
  );
167
167
  }
168
168
 
169
+ if (typeof option !== "string") {
170
+ return null;
171
+ }
169
172
  return <li {...props}>{option}</li>;
170
173
  }}
171
174
  />