Skip to content

Commit

Permalink
Fix for orgDid missing value
Browse files Browse the repository at this point in the history
Signed-off-by: prasadgkalamkar <[email protected]>
  • Loading branch information
prasadgkalamkar committed Dec 2, 2024
1 parent 7a06c65 commit 7653b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ const UserDashBoard = () => {
const response = await getOrganizationById(orgId);
const { data } = response as AxiosResponse;
if (data?.statusCode === apiStatusCodes.API_STATUS_SUCCESS) {
const orgDid = data?.data?.org_agents[0].orgDid
const orgDid = data && data.org_agents && data.org_agents.length > 0 && data.org_agents[0].orgDid;
if (data?.data?.org_agents) {
setWalletData(data?.data?.org_agents);
} else {
setWalletData([]);
}
if(orgDid.includes(DidMethod.INDY)){
if(orgDid && orgDid.includes(DidMethod.INDY)){
setIsW3C(false);
}
}
Expand Down

0 comments on commit 7653b5a

Please sign in to comment.