Skip to content

Commit

Permalink
IssueId #223074 feat: UI related changes for offline mode english add…
Browse files Browse the repository at this point in the history
…ition
  • Loading branch information
ajinkyapandetekdi committed Jul 16, 2024
1 parent 07c77ff commit 273f0b8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Assesment/Assesment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,14 @@ export const ProfileHeader = ({
}
};

const isOfflineModel = localStorage.getItem("isOfflineModel") === "true";

const selectedLanguage = languages?.find(
(elem) => elem.lang === language && elem.offline === isOfflineModel
);

const displayLanguage = selectedLanguage?.name || "Select Language";

return (
<>
{!!openMessageDialog && (
Expand Down Expand Up @@ -489,8 +497,7 @@ export const ProfileHeader = ({
lineHeight: "25px",
}}
>
{languages?.find((elem) => elem.lang === language)?.name ||
"Select Language"}
{displayLanguage}
</span>
</Box>
</Box>
Expand Down

0 comments on commit 273f0b8

Please sign in to comment.