Skip to content

Commit

Permalink
Issue #000 chore: Updated PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushikesh-Sonawane99 committed Aug 2, 2024
1 parent 53ef81c commit 59f2fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/user-profile/[userId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const TeacherProfile = () => {
// find Address
const getFieldValue = (data: any, label: string) => {
const field = data.find((item: any) => item.label === label);
return field ? field?.value[0] : null;
return field ? field?.value : null;
};

const { data, error, isLoading } = useProfileInfo(userId ?? '', true, reload);
Expand Down

0 comments on commit 59f2fb5

Please sign in to comment.