@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.
@@ -3851,8 +3851,6 @@ const Review = () => {
3851
3851
  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)) || [];
3852
3852
  const isZRO = userRoles.includes("EKYC_ZRO") || userRoles.includes("ZRO");
3853
3853
  const isSupervisorOrSurveyorOrVendor = userRoles.includes("EKYC_SURVEYOR") || userRoles.includes("EKYC_VENDOR");
3854
- const EKYC_ROLE_PRIORITY = ["EKYC_ZRO", "ZRO", "EKYC_SUPERVISOR", "EKYC_SURVEYOR", "EKYC_VENDOR"];
3855
- const currentUserRole = EKYC_ROLE_PRIORITY.find(r => userRoles.includes(r)) || userRoles[0] || "EMPLOYEE";
3856
3854
  const isStatusView = location.pathname.includes("/status/");
3857
3855
  const hideEditButton = isSupervisorOrSurveyorOrVendor && !isZRO || isStatusView;
3858
3856
  const _extractReviewData = extractReviewData(searchData, flowState),
@@ -4311,7 +4309,7 @@ const Review = () => {
4311
4309
  action: "REJECTED",
4312
4310
  remarks: "Application rejected by reviewer",
4313
4311
  reviewedBy: supervisorId,
4314
- role: currentUserRole
4312
+ role: "ZRO"
4315
4313
  };
4316
4314
  const _temp = _catch(function () {
4317
4315
  return Promise.resolve(workflowMutation.mutateAsync(payload)).then(function (result) {
@@ -4356,7 +4354,7 @@ const Review = () => {
4356
4354
  action: "APPROVED",
4357
4355
  remarks: "All documents verified",
4358
4356
  reviewedBy: supervisorId,
4359
- role: currentUserRole
4357
+ role: "ZRO"
4360
4358
  };
4361
4359
  const _temp2 = _catch(function () {
4362
4360
  return Promise.resolve(workflowMutation.mutateAsync(payload)).then(function (result) {