@wix/form-public 0.162.0 → 0.163.0
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -21313,7 +21313,7 @@ function formatAddressLine(isStreetFormat, streetAddress, addressLine) {
|
|
|
21313
21313
|
return `${(streetAddress == null ? void 0 : streetAddress.name) || ""} ${streetNumber}`;
|
|
21314
21314
|
}
|
|
21315
21315
|
function formatMultilineAddress(submission, options) {
|
|
21316
|
-
const country = import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country);
|
|
21316
|
+
const country = submission.country ? import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country) : void 0;
|
|
21317
21317
|
const streetAddress = {
|
|
21318
21318
|
name: submission.streetName,
|
|
21319
21319
|
number: submission.streetNumber,
|