@undp/carbon-library 1.0.41 → 1.0.43
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 +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -1228,10 +1228,12 @@ var AddNewCompanyComponent = function (props) {
|
|
1228
1228
|
}
|
1229
1229
|
else {
|
1230
1230
|
phoneNo = PhoneInput.formatPhoneNumber(String(value));
|
1231
|
-
if (
|
1232
|
-
phoneNo ===
|
1233
|
-
|
1234
|
-
|
1231
|
+
if (String(value).trim() !== "") {
|
1232
|
+
if (phoneNo === null ||
|
1233
|
+
phoneNo === "" ||
|
1234
|
+
phoneNo === undefined) {
|
1235
|
+
throw new Error("Phone Number ".concat(t("isRequired")));
|
1236
|
+
}
|
1235
1237
|
}
|
1236
1238
|
}
|
1237
1239
|
return [2 /*return*/];
|