Skip to content

Commit

Permalink
Task #224175 fix: Sonar Cloud Fixes for all-learner-ai-app
Browse files Browse the repository at this point in the history
  • Loading branch information
deechavhan098 committed Jul 30, 2024
1 parent 49e768a commit 8c65fd0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Assesment/Assesment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export const ProfileHeader = ({
const handleProfileBack = () => {
try {
if (process.env.REACT_APP_IS_APP_IFRAME === "true") {
window.parent.postMessage({ type: "restore-iframe-content" }, "*");
window.parent.postMessage({ type: "restore-iframe-content" });
navigate("/");
} else {
navigate("/discover-start");
Expand Down
2 changes: 1 addition & 1 deletion src/components/AssesmentEnd/AssesmentEnd.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const AssesmentEnd = () => {
const { data } = getMilestoneDetails;
setLevel(data.data.milestone_level);
setLocalData("userLevel", data.data.milestone_level?.replace("m", ""));
const sessionId = getLocalData("sessionId");
let sessionId = getLocalData("sessionId");
if (!sessionId){
sessionId = uniqueId();
localStorage.setItem("sessionId", sessionId)
Expand Down
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
color: #1cc871;
-webkit-text-stroke-width: 0.5;
-webkit-text-stroke-color: #00b359;
font-family: Quicksand;
font-family: sans-serif;
font-size: 40px;
font-style: normal;
font-weight: 700;
Expand All @@ -130,7 +130,7 @@
color: #c30303;
-webkit-text-stroke-width: 0.5;
-webkit-text-stroke-color: #c30303;
font-family: Quicksand;
font-family: sans-serif;
font-size: 40px;
font-style: normal;
font-weight: 700;
Expand Down
4 changes: 2 additions & 2 deletions src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ const Practice = () => {
setLoading(true);
const lang = getLocalData("lang");
const virtualId = getLocalData("virtualId");
const sessionId = getLocalData("sessionId");
let sessionId = getLocalData("sessionId");

if (!sessionId){
sessionId = uniqueId();
Expand Down Expand Up @@ -701,7 +701,7 @@ const Practice = () => {
const contentSourceData = questions[currentQuestion]?.contentSourceData || [];
const stringLengths = contentSourceData.map(item => item.text.length);
const length = stringLengths[0];
window.parent.postMessage({ type: 'stringLengths', length }, '*');
window.parent.postMessage({ type: 'stringLengths', length });
}
}
}, [questions[currentQuestion]]);
Expand Down

0 comments on commit 8c65fd0

Please sign in to comment.