@undp/carbon-library 1.0.42 → 1.0.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +5 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +1 -1
- package/dist/esm/index.js +5 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -177,7 +177,7 @@ exports.ProgrammeStage = void 0;
|
|
177
177
|
})(exports.ProgrammeStage || (exports.ProgrammeStage = {}));
|
178
178
|
exports.ProgrammeStageMRV = void 0;
|
179
179
|
(function (ProgrammeStageMRV) {
|
180
|
-
ProgrammeStageMRV["AwaitingAuthorization"] = "
|
180
|
+
ProgrammeStageMRV["AwaitingAuthorization"] = "AwaitingAuthorization";
|
181
181
|
ProgrammeStageMRV["Authorised"] = "Authorised";
|
182
182
|
ProgrammeStageMRV["Approved"] = "Approved";
|
183
183
|
ProgrammeStageMRV["Rejected"] = "Rejected";
|
@@ -1228,13 +1228,10 @@ var AddNewCompanyComponent = function (props) {
|
|
1228
1228
|
}
|
1229
1229
|
else {
|
1230
1230
|
phoneNo = PhoneInput.formatPhoneNumber(String(value));
|
1231
|
-
if (
|
1232
|
-
phoneNo ===
|
1233
|
-
|
1234
|
-
|
1235
|
-
throw new Error("Phone Number ".concat(t("isInvalid")));
|
1236
|
-
}
|
1237
|
-
else {
|
1231
|
+
if (String(value).trim() !== "") {
|
1232
|
+
if (phoneNo === null ||
|
1233
|
+
phoneNo === "" ||
|
1234
|
+
phoneNo === undefined) {
|
1238
1235
|
throw new Error("Phone Number ".concat(t("isRequired")));
|
1239
1236
|
}
|
1240
1237
|
}
|