Skip to content

Commit

Permalink
Merge branch 'develop-fixed-dco' of https://github.com/credebl/studio
Browse files Browse the repository at this point in the history
…into fix/page-breaking-issue
  • Loading branch information
bhavanakarwade committed Dec 10, 2024
2 parents 74f31ea + c3f25bc commit c1a4880
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/Issuance/IssuedCrdentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,15 @@ const CredentialList = () => {
const response = await getOrganizationById(orgId);
const { data } = response as AxiosResponse;
if (data?.statusCode === apiStatusCodes.API_STATUS_SUCCESS) {
const did = data?.data?.org_agents?.[0]?.orgDid;

await setToLocalStorage(storageKeys.ORG_DID, did)
if (did.includes(DidMethod.POLYGON) || did.includes(DidMethod.KEY) || did.includes(DidMethod.WEB)) {
setW3CSchema(true);
}
if (did.includes(DidMethod.INDY)) {
setW3CSchema(false);
const did = data?.data?.org_agents[0]?.orgDid;
if (did) {
await setToLocalStorage(storageKeys.ORG_DID, did)
if (did.includes(DidMethod.POLYGON) || did.includes(DidMethod.KEY) || did.includes(DidMethod.WEB)) {
setW3CSchema(true);
}
if (did.includes(DidMethod.INDY)) {
setW3CSchema(false);
}
}
}
setLoading(false);
Expand Down

0 comments on commit c1a4880

Please sign in to comment.