@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/esm/index.js
CHANGED
@@ -1208,10 +1208,12 @@ var AddNewCompanyComponent = function (props) {
|
|
1208
1208
|
}
|
1209
1209
|
else {
|
1210
1210
|
phoneNo = formatPhoneNumber(String(value));
|
1211
|
-
if (
|
1212
|
-
phoneNo ===
|
1213
|
-
|
1214
|
-
|
1211
|
+
if (String(value).trim() !== "") {
|
1212
|
+
if (phoneNo === null ||
|
1213
|
+
phoneNo === "" ||
|
1214
|
+
phoneNo === undefined) {
|
1215
|
+
throw new Error("Phone Number ".concat(t("isRequired")));
|
1216
|
+
}
|
1215
1217
|
}
|
1216
1218
|
}
|
1217
1219
|
return [2 /*return*/];
|