contentoh-components-library 21.0.97 → 21.0.98

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.
@@ -43,17 +43,7 @@ var AsignationOption = function AsignationOption(_ref) {
43
43
  services.forEach(function (srv) {
44
44
  return servCad += srv;
45
45
  });
46
-
47
- switch (servCad) {
48
- case "NANANA":
49
- return "NA";
50
-
51
- case "RECEIVEDRECEIVEDRECEIVED":
52
- return "RECEIVED";
53
-
54
- default:
55
- return (0, _data.getNewStatus)(services);
56
- }
46
+ return (0, _data.getNewStatus)(services);
57
47
  };
58
48
 
59
49
  var iconsAsignation = {
@@ -282,6 +282,8 @@ var getNewStatus = function getNewStatus(statusArray) {
282
282
  if (lookupString.includes("AA")) return "AA";
283
283
  if (lookupString.includes("AP")) return "AP";
284
284
  if (lookupString.includes("AC")) return "AC";
285
+ if (lookupString.includes("RECEIVED")) return "RECEIVED";
286
+ if (lookupString.includes("NA")) return "NA";
285
287
  return new Error("Status not found");
286
288
  };
287
289
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.97",
3
+ "version": "21.0.98",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -22,14 +22,8 @@ export const AsignationOption = ({
22
22
  const getStatus = () => {
23
23
  let servCad = "";
24
24
  services.forEach((srv) => (servCad += srv));
25
- switch (servCad) {
26
- case "NANANA":
27
- return "NA";
28
- case "RECEIVEDRECEIVEDRECEIVED":
29
- return "RECEIVED";
30
- default:
31
- return getNewStatus(services);
32
- }
25
+
26
+ return getNewStatus(services);
33
27
  };
34
28
 
35
29
  const iconsAsignation = {
@@ -194,5 +194,7 @@ export const getNewStatus = (statusArray) => {
194
194
  if (lookupString.includes("AA")) return "AA";
195
195
  if (lookupString.includes("AP")) return "AP";
196
196
  if (lookupString.includes("AC")) return "AC";
197
+ if (lookupString.includes("RECEIVED")) return "RECEIVED";
198
+ if (lookupString.includes("NA")) return "NA";
197
199
  return new Error("Status not found");
198
200
  };