@undp/carbon-library 1.0.41 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- 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/esm/index.js
CHANGED
@@ -1211,7 +1211,12 @@ var AddNewCompanyComponent = function (props) {
|
|
1211
1211
|
if (phoneNo === null ||
|
1212
1212
|
phoneNo === "" ||
|
1213
1213
|
phoneNo === undefined) {
|
1214
|
-
|
1214
|
+
if (String(value) !== "") {
|
1215
|
+
throw new Error("Phone Number ".concat(t("isInvalid")));
|
1216
|
+
}
|
1217
|
+
else {
|
1218
|
+
throw new Error("Phone Number ".concat(t("isRequired")));
|
1219
|
+
}
|
1215
1220
|
}
|
1216
1221
|
}
|
1217
1222
|
return [2 /*return*/];
|