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