Skip to content

Commit

Permalink
optional chaining corrected
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 18aa251 commit f05734c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ 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 && data.org_agents.length > 0 && data.org_agents[0].orgDid;
const orgDid = data?.org_agents?.[0].orgDid;
if (data?.data?.org_agents) {
setWalletData(data?.data?.org_agents);
} else {
Expand Down

0 comments on commit f05734c

Please sign in to comment.