Skip to content

Commit

Permalink
Merge pull request #179 from Sunbird-ALL/all-1.2-tn-dev
Browse files Browse the repository at this point in the history
Issue #showcase issue fixes updates
  • Loading branch information
gouravmore authored Oct 21, 2024
2 parents 577d45a + c61afe6 commit 00b4b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Practice/Mechanics5.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ const Mechanics5 = ({
setVoiceAnimate={setVoiceAnimate}
storyLine={storyLine}
dontShowListen={type === "image" || isDiscover}
isShowCase={isShowCase || isDiscover}
originalText={
options &&
options.length > 0 &&
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 @@ -41,7 +41,7 @@ const Practice = () => {
const [level, setLevel] = useState("");
const [isShowCase, setIsShowCase] = useState(false);
const [startShowCase, setStartShowCase] = useState(false);
const limit = 6;
const limit = 5;
const [disableScreen, setDisableScreen] = useState(false);
const [mechanism, setMechanism] = useState("");

Expand Down Expand Up @@ -216,7 +216,7 @@ const Practice = () => {
currentQuestion === questions.length - 1 ? 0 : currentQuestion + 1;

const currentGetContent = levelGetContent?.[level]?.find(
(elem) => elem.title === practiceSteps?.[newPracticeStep].name
(elem) => elem.title === practiceSteps?.[newPracticeStep]?.name
);

if (currentQuestion === questions.length - 1 || isGameOver) {
Expand Down

0 comments on commit 00b4b75

Please sign in to comment.