Skip to content

Commit

Permalink
Merge pull request #615 from mahajanmahesh935/domainCard
Browse files Browse the repository at this point in the history
TASK : #0000 [Desktop => User Prefence] Popup gets closed without any alert/intimation , [Desktop] [Mobile] Showing red color error message in the popup, After 1st time login, [Content Detail Page] Data missing on the content detail page
  • Loading branch information
paritshivani authored Sep 16, 2024
2 parents 83a1a26 + 8e54d72 commit 8f9878b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions packages/nulp_elite/src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ export default function BoxCard({ items, index, onClick, continueLearning }) {
</Typography>
)}
{items.organisation && items.organisation.length > 0 && (
<Tooltip
title={
items.organisation.length > 1
? items.organisation.join(', ')
: items.organisation[0]
}
arrow
placement="top"
>
<Typography
variant="body2"
color="#5B5B5B"
Expand All @@ -208,6 +217,7 @@ export default function BoxCard({ items, index, onClick, continueLearning }) {
: `${items.organisation[0]} + ${items.organisation.length - 1}`}
</Box>
</Typography>
</Tooltip>
)}
</CardContent>
{(items?.board ||
Expand Down
6 changes: 3 additions & 3 deletions packages/nulp_elite/src/pages/SelectPreference.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const SelectPreference = ({ isOpen, onClose }) => {
}

const responseData = await response.json();
if (Object.entries(responseData?.result?.response.framework).length === 0 ) {
if (Object.entries(responseData?.result?.response?.framework).length === 0 ) {
setIsEmptyPreference(false);
} else {
setSelectedCategory(
Expand All @@ -261,7 +261,7 @@ const SelectPreference = ({ isOpen, onClose }) => {
);
}

if (responseData?.result?.response.framework?.id[0] === "nulp") {
if (responseData?.result?.response?.framework?.id?.length > 0 && responseData.result.response.framework.id[0] === "nulp") {
setframworkname(true);
}

Expand Down Expand Up @@ -384,7 +384,7 @@ const SelectPreference = ({ isOpen, onClose }) => {
{toasterMessage && <ToasterCommon response={toasterMessage} />}
<DialogTitle>{t("SELECT_PREF")}</DialogTitle>
{framworkname && (
<DialogTitle onClick={handleClose}>
<DialogTitle>
{t("CHANGE_PREF_OLD_USER")}
</DialogTitle>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/nulp_elite/src/pages/content/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@ const attemptid = ()=>{
);
};

export default Player;
export default Player;

0 comments on commit 8f9878b

Please sign in to comment.