@djb25/digit-ui-module-ekyc 1.0.57 → 1.0.58

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/index.js CHANGED
@@ -3854,8 +3854,6 @@ const Review = () => {
3854
3854
  const userRoles = ((_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.roles) === null || _Digit$SessionStorage3 === void 0 ? void 0 : _Digit$SessionStorage3.map(ele => ele.code)) || [];
3855
3855
  const isZRO = userRoles.includes("EKYC_ZRO") || userRoles.includes("ZRO");
3856
3856
  const isSupervisorOrSurveyorOrVendor = userRoles.includes("EKYC_SURVEYOR") || userRoles.includes("EKYC_VENDOR");
3857
- const EKYC_ROLE_PRIORITY = ["EKYC_ZRO", "ZRO", "EKYC_SUPERVISOR", "EKYC_SURVEYOR", "EKYC_VENDOR"];
3858
- const currentUserRole = EKYC_ROLE_PRIORITY.find(r => userRoles.includes(r)) || userRoles[0] || "EMPLOYEE";
3859
3857
  const isStatusView = location.pathname.includes("/status/");
3860
3858
  const hideEditButton = isSupervisorOrSurveyorOrVendor && !isZRO || isStatusView;
3861
3859
  const _extractReviewData = extractReviewData(searchData, flowState),
@@ -4314,7 +4312,7 @@ const Review = () => {
4314
4312
  action: "REJECTED",
4315
4313
  remarks: "Application rejected by reviewer",
4316
4314
  reviewedBy: supervisorId,
4317
- role: currentUserRole
4315
+ role: "ZRO"
4318
4316
  };
4319
4317
  const _temp = _catch(function () {
4320
4318
  return Promise.resolve(workflowMutation.mutateAsync(payload)).then(function (result) {
@@ -4359,7 +4357,7 @@ const Review = () => {
4359
4357
  action: "APPROVED",
4360
4358
  remarks: "All documents verified",
4361
4359
  reviewedBy: supervisorId,
4362
- role: currentUserRole
4360
+ role: "ZRO"
4363
4361
  };
4364
4362
  const _temp2 = _catch(function () {
4365
4363
  return Promise.resolve(workflowMutation.mutateAsync(payload)).then(function (result) {