@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.
@@ -6,7 +6,7 @@ export declare enum ProgrammeStage {
6
6
  Rejected = "Rejected"
7
7
  }
8
8
  export declare enum ProgrammeStageMRV {
9
- AwaitingAuthorization = "Pending",
9
+ AwaitingAuthorization = "AwaitingAuthorization",
10
10
  Authorised = "Authorised",
11
11
  Approved = "Approved",
12
12
  Rejected = "Rejected"
package/dist/esm/index.js CHANGED
@@ -157,7 +157,7 @@ var ProgrammeStage;
157
157
  })(ProgrammeStage || (ProgrammeStage = {}));
158
158
  var ProgrammeStageMRV;
159
159
  (function (ProgrammeStageMRV) {
160
- ProgrammeStageMRV["AwaitingAuthorization"] = "Pending";
160
+ ProgrammeStageMRV["AwaitingAuthorization"] = "AwaitingAuthorization";
161
161
  ProgrammeStageMRV["Authorised"] = "Authorised";
162
162
  ProgrammeStageMRV["Approved"] = "Approved";
163
163
  ProgrammeStageMRV["Rejected"] = "Rejected";
@@ -1208,13 +1208,10 @@ var AddNewCompanyComponent = function (props) {
1208
1208
  }
1209
1209
  else {
1210
1210
  phoneNo = formatPhoneNumber(String(value));
1211
- if (phoneNo === null ||
1212
- phoneNo === "" ||
1213
- phoneNo === undefined) {
1214
- if (String(value) !== "") {
1215
- throw new Error("Phone Number ".concat(t("isInvalid")));
1216
- }
1217
- else {
1211
+ if (String(value).trim() !== "") {
1212
+ if (phoneNo === null ||
1213
+ phoneNo === "" ||
1214
+ phoneNo === undefined) {
1218
1215
  throw new Error("Phone Number ".concat(t("isRequired")));
1219
1216
  }
1220
1217
  }