TP-53747 | included AADHAR in updatedDocList
This commit is contained in:
@@ -93,11 +93,12 @@ const CustomerProfile: React.FC<ICustomerProfile> = (props) => {
|
||||
const docList: IDocument[] = getDocumentList(caseDetail) || [];
|
||||
const docPromises: Promise<DocumentDetail | null>[] = [];
|
||||
const updatedDocList = [
|
||||
DOCUMENT_TYPE.LDN,
|
||||
DOCUMENT_TYPE.LRN,
|
||||
DOCUMENT_TYPE.VKYC_VIDEO,
|
||||
DOCUMENT_TYPE.AADHAR_PHOTO,
|
||||
DOCUMENT_TYPE.DRIVING_LICENSE,
|
||||
DOCUMENT_TYPE.LDN,
|
||||
DOCUMENT_TYPE.LRN,
|
||||
DOCUMENT_TYPE.AADHAR,
|
||||
];
|
||||
updatedDocList.forEach((documentType) => {
|
||||
const document = findDocumentByDocumentType(docList, documentType);
|
||||
|
||||
@@ -81,6 +81,17 @@ export const getDocumentDetails = async (document: IDocument) => {
|
||||
documentRefId: document.referenceId,
|
||||
};
|
||||
|
||||
case DOCUMENT_TYPE.AADHAR:
|
||||
return {
|
||||
icon: <ImageIcon />,
|
||||
title: DocumentTitle.AADHAR,
|
||||
docType: DOCUMENT_TYPE.AADHAR,
|
||||
docContentType: docType,
|
||||
url: imageUrl,
|
||||
unSignedUri: document.unSignedUri,
|
||||
documentRefId: document.referenceId,
|
||||
};
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user