@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.modern.js
CHANGED
|
@@ -4849,7 +4849,7 @@ const AdminDashboard = () => {
|
|
|
4849
4849
|
};
|
|
4850
4850
|
|
|
4851
4851
|
const SupervisorDetailsCard = () => {
|
|
4852
|
-
var _Digit$SessionStorage, _progressData$supervi, _fullName$charAt;
|
|
4852
|
+
var _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2, _progressData$supervi, _fullName$charAt;
|
|
4853
4853
|
const {
|
|
4854
4854
|
t
|
|
4855
4855
|
} = useTranslation();
|
|
@@ -4881,10 +4881,9 @@ const SupervisorDetailsCard = () => {
|
|
|
4881
4881
|
const {
|
|
4882
4882
|
isLoading: isProgressLoading,
|
|
4883
4883
|
data: progressData
|
|
4884
|
-
} = Digit.Hooks.ekyc.useEkycAssignmentProgress(
|
|
4885
|
-
vendorId: targetVendorId
|
|
4886
|
-
|
|
4887
|
-
} : {}, {
|
|
4884
|
+
} = Digit.Hooks.ekyc.useEkycAssignmentProgress({
|
|
4885
|
+
vendorId: targetVendorId
|
|
4886
|
+
}, {
|
|
4888
4887
|
enabled: !!tenantId,
|
|
4889
4888
|
keepPreviousData: true
|
|
4890
4889
|
});
|
|
@@ -5057,7 +5056,9 @@ const SupervisorDetailsCard = () => {
|
|
|
5057
5056
|
}, [supervisor]);
|
|
5058
5057
|
const [currentPage, setCurrentPage] = useState(0);
|
|
5059
5058
|
const [pageSize, setPageSize] = useState(20);
|
|
5060
|
-
const
|
|
5059
|
+
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;
|
|
5060
|
+
const isSupervisor = userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => role.code === "EKYC_SUPERVISOR");
|
|
5061
|
+
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);
|
|
5061
5062
|
const surveyorsData = (currentSupervisor === null || currentSupervisor === void 0 ? void 0 : currentSupervisor.surveyors) || [];
|
|
5062
5063
|
const cards = useMemo(() => [{
|
|
5063
5064
|
label: "TOTAL_EKYC_APPLICATIONS",
|