Skip to content

Commit

Permalink
fix: resolve conflict
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Dec 5, 2024
1 parent 06f8dad commit 3ab5cdc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,17 +273,15 @@ const UserDashBoard = () => {
const response = await getOrganizationById(orgId);
const { data } = response as AxiosResponse;
if (data?.statusCode === apiStatusCodes.API_STATUS_SUCCESS) {
const orgAgentsList = data?.data?.org_agents;
if (orgAgentsList && orgAgentsList.length > 0) {
const orgDid = orgAgentsList[0].orgDid;
const orgDid = data?.data?.org_agents[0].orgDid
if (data?.data?.org_agents) {
setWalletData(data?.data?.org_agents);

if(orgDid?.includes(DidMethod.INDY)){
setIsW3C(false);
}
} else {
setWalletData([]);
}
if(orgDid.includes(DidMethod.INDY)){
setIsW3C(false);
}
}
setWalletLoading(false);
};
Expand Down

0 comments on commit 3ab5cdc

Please sign in to comment.