@djb25/digit-ui-module-ekyc 1.0.15 → 1.0.16
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/pages/citizen/index.js +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6585,7 +6585,7 @@ const CitizenApp = () => {
|
|
|
6585
6585
|
label: t(getBreadcrumbLabel())
|
|
6586
6586
|
}];
|
|
6587
6587
|
const roles = (_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$SessionStorage2.roles.map(ele => ele.code);
|
|
6588
|
-
const isEkyAction = !roles.includes("EKYC_SURVEYOR") || roles.includes("EMPLOYEE");
|
|
6588
|
+
const isEkyAction = !(roles !== null && roles !== void 0 && roles.includes("EKYC_SURVEYOR")) || (roles === null || roles === void 0 ? void 0 : roles.includes("EMPLOYEE"));
|
|
6589
6589
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
6590
6590
|
className: "ground-container form-container"
|
|
6591
6591
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|