@djb25/digit-ui-module-ekyc 1.0.74 → 1.0.75
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 +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4851,7 +4851,7 @@ const AdminDashboard = () => {
|
|
|
4851
4851
|
};
|
|
4852
4852
|
|
|
4853
4853
|
const SupervisorDetailsCard = () => {
|
|
4854
|
-
var _Digit$SessionStorage, _progressData$supervi, _fullName$charAt;
|
|
4854
|
+
var _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2, _progressData$supervi, _fullName$charAt;
|
|
4855
4855
|
const {
|
|
4856
4856
|
t
|
|
4857
4857
|
} = reactI18next.useTranslation();
|
|
@@ -4883,10 +4883,9 @@ const SupervisorDetailsCard = () => {
|
|
|
4883
4883
|
const {
|
|
4884
4884
|
isLoading: isProgressLoading,
|
|
4885
4885
|
data: progressData
|
|
4886
|
-
} = Digit.Hooks.ekyc.useEkycAssignmentProgress(
|
|
4887
|
-
vendorId: targetVendorId
|
|
4888
|
-
|
|
4889
|
-
} : {}, {
|
|
4886
|
+
} = Digit.Hooks.ekyc.useEkycAssignmentProgress({
|
|
4887
|
+
vendorId: targetVendorId
|
|
4888
|
+
}, {
|
|
4890
4889
|
enabled: !!tenantId,
|
|
4891
4890
|
keepPreviousData: true
|
|
4892
4891
|
});
|
|
@@ -5059,7 +5058,9 @@ const SupervisorDetailsCard = () => {
|
|
|
5059
5058
|
}, [supervisor]);
|
|
5060
5059
|
const [currentPage, setCurrentPage] = React.useState(0);
|
|
5061
5060
|
const [pageSize, setPageSize] = React.useState(20);
|
|
5062
|
-
const
|
|
5061
|
+
const userRoles = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.roles;
|
|
5062
|
+
const isSupervisor = userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => role.code === "EKYC_SUPERVISOR");
|
|
5063
|
+
const currentSupervisor = isSupervisor ? (progressData === null || progressData === void 0 ? void 0 : progressData.supervisorReport[0]) || [] : progressData === null || progressData === void 0 ? void 0 : (_progressData$supervi = progressData.supervisorReport) === null || _progressData$supervi === void 0 ? void 0 : _progressData$supervi.find(ele => ele.supervisorId === supervisorId);
|
|
5063
5064
|
const surveyorsData = (currentSupervisor === null || currentSupervisor === void 0 ? void 0 : currentSupervisor.surveyors) || [];
|
|
5064
5065
|
const cards = React.useMemo(() => [{
|
|
5065
5066
|
label: "TOTAL_EKYC_APPLICATIONS",
|