Skip to content

Commit

Permalink
fix:org did not found issue resolved in issuance flow (#835)
Browse files Browse the repository at this point in the history
* org did not foud issue resolved in issuance flow

Signed-off-by: prasadgkalamkar <[email protected]>

* org did not found check

Signed-off-by: prasadgkalamkar <[email protected]>

---------

Signed-off-by: prasadgkalamkar <[email protected]>
  • Loading branch information
prasadgkalamkar authored Dec 9, 2024
1 parent 34e0065 commit c3f25bc
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 c3f25bc

Please sign in to comment.