@cerebruminc/cerebellum 16.0.0-beta.dangerous.df9ec3f → 16.0.0-beta.dangerous.e7958f0
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/lib/cjs/index.cjs +2 -1
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +3 -3
package/lib/cjs/index.cjs
CHANGED
|
@@ -18096,9 +18096,10 @@ function AddressField(props) {
|
|
|
18096
18096
|
var country = properties.country;
|
|
18097
18097
|
var handleChange = function (key, value, fullAddress) {
|
|
18098
18098
|
var _a;
|
|
18099
|
+
var _b, _c;
|
|
18099
18100
|
var newFormData = _tslib.__assign(_tslib.__assign({}, formData), (_a = {}, _a[key] = value, _a));
|
|
18100
18101
|
if (fullAddress) {
|
|
18101
|
-
newFormData = _tslib.__assign(_tslib.__assign({}, newFormData), { postalCode: fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.postalCode, state: fullAddress.state, city: fullAddress.city });
|
|
18102
|
+
newFormData = _tslib.__assign(_tslib.__assign({}, newFormData), { address: ((_c = (_b = fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.rawAddressObject) === null || _b === void 0 ? void 0 : _b.formattedSuggestion) === null || _c === void 0 ? void 0 : _c.mainText) || (fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.street), postalCode: fullAddress === null || fullAddress === void 0 ? void 0 : fullAddress.postalCode, state: fullAddress.state, city: fullAddress.city });
|
|
18102
18103
|
}
|
|
18103
18104
|
onChange(newFormData);
|
|
18104
18105
|
};
|