Skip to content

Commit

Permalink
MOSIP-37580, MOSIP-37581: UI Development & Integration of View Detail…
Browse files Browse the repository at this point in the history
…s of FTM Chip Details Page (#977)

Signed-off-by: Anil_Kumar_Majji <[email protected]>
  • Loading branch information
Anil-kumar-Majji authored Dec 2, 2024
1 parent df827aa commit 83be5b1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ function ViewAdminFtmChipDetails() {
const selectedFtmData = localStorage.getItem('selectedFtmAttributes');
if (!selectedFtmData) {
setUnexpectedError(true);
return
return;
}
setFtmDetails(JSON.parse(selectedFtmData));
const selectedFtmDetails = JSON.parse(selectedFtmData);
setFtmDetails(selectedFtmDetails);

const fetchCertificateDetails = async () => {
setErrorCode("");
setErrorMsg("");
try {
const response = await HttpService.get(getPartnerManagerUrl('/ftpchipdetail/' + ftmDetails.ftmId + '/original-ftm-certificate', process.env.NODE_ENV));
const response = await HttpService.get(getPartnerManagerUrl('/ftpchipdetail/' + selectedFtmDetails.ftmId + '/original-ftm-certificate', process.env.NODE_ENV));
if (response) {
const responseData = response.data;
if (responseData && responseData.response) {
Expand Down

0 comments on commit 83be5b1

Please sign in to comment.