Skip to content

Commit

Permalink
Fix: material progress added + null check
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik cs authored and georgepadayatti committed Apr 7, 2024
1 parent 30e750d commit 45233fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/container/AddCredential/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const ConfirmComponent = ({ callRightSideDrawer }) => {
const verifyConnectionObj = useAppSelector(
(state) => state?.gettingStart?.verifyConnection.data?.verification?.presentationRecord
);
const values = verifyConnectionObj.presentation.requested_proof.revealed_attrs;
const values = verifyConnectionObj?.presentation?.requested_proof?.revealed_attrs;

const keys = Object.keys(verifyConnectionObj.presentation_request.requested_attributes)
const keys = Object.keys(verifyConnectionObj?.presentation_request?.requested_attributes)
let tableObj = {};

keys.map((i) => {
tableObj[verifyConnectionObj.presentation_request.requested_attributes[i].name] = values[i].raw
tableObj[verifyConnectionObj?.presentation_request?.requested_attributes[i]?.name] = values[i]?.raw
});

const tableData = []
Expand Down

0 comments on commit 45233fa

Please sign in to comment.