Skip to content

Commit

Permalink
Merge pull request #447 from ManojNathIC/polls
Browse files Browse the repository at this point in the history
Task #0000:Bug fixes-organization name on profile, join course issue
  • Loading branch information
ManojNathIC authored Aug 6, 2024
2 parents 1c7f543 + 83cd013 commit d68f06c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
9 changes: 4 additions & 5 deletions packages/nulp_elite/src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,10 @@ export default function BoxCard({ items, index, onClick }) {
title={
Array.isArray(items?.board) && items.board.length === 1
? items.board.join(", ")
: items.se_boards[0] ||
(Array.isArray(items?.se_boards) &&
items?.se_boards.length > 1
? items.se_boards.join(", ")
: items.se_boards?.[0] || "")
: Array.isArray(items?.se_boards) &&
items.se_boards.length > 1
? items.se_boards.join(", ")
: items?.se_boards?.[0] || ""
}
placement="top"
className="labelOne cardLabelEllips"
Expand Down
2 changes: 1 addition & 1 deletion packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ const JoinCourse = () => {
{t("CONTENT_TAGS")}:{" "}
</Typography>

{courseData?.result?.content?.board &&
{Array.isArray(courseData?.result?.content?.board) &&
courseData?.result?.content?.board?.map((item, index) => (
<Button
key={`board-${index}`}
Expand Down
16 changes: 9 additions & 7 deletions packages/nulp_elite/src/pages/profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,14 @@ const Profile = () => {
}
</Box>
</Typography>
<Typography className="h6-title d-flex">
<Box className="h6-title d-flex">
Organization Name :
{userData?.result?.response?.rootOrg?.orgName}
</Box>
</Typography>
{userInfo && userInfo?.length && (
<Typography className="h6-title d-flex">
<Box className="h6-title d-flex">
Organization Name :
{userInfo?.[0]?.organisation || "NA"}
</Box>
</Typography>
)}
<Typography className="h6-title d-flex">
<Box className="h6-title d-flex">
Role :{" "}
Expand Down Expand Up @@ -986,7 +988,7 @@ const Profile = () => {
</Select>
</FormControl>
</Box>
{editedUserInfo.designation === "Other" && (
{editedUserInfo.designation === "Others" && (
<Box py={1}>
<CssTextField
id="otherDesignation"
Expand Down

0 comments on commit d68f06c

Please sign in to comment.