Skip to content

Commit

Permalink
Merge pull request Sunbird-ALL#193 from ajinkyapandetekdi/fillinthebl…
Browse files Browse the repository at this point in the history
…anks-all-dev-tn

Issueid #0000 iframe height for fill in the blanks
  • Loading branch information
gouravmore authored Nov 4, 2024
2 parents 4d43ae6 + 1cb1552 commit 9c8c29b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,11 @@ const Practice = () => {
questions[currentQuestion]?.contentSourceData || [];
const stringLengths = contentSourceData.map((item) => item.text.length);
const length =
(questions[currentQuestion]?.mechanics_data &&
questions[currentQuestion]?.mechanics_data &&
(questions[currentQuestion]?.mechanics_data[0]?.mechanics_id ===
"mechanic_2" ||
questions[currentQuestion]?.mechanics_data[0]?.mechanics_id ===
"mechanic_2") ||
questions[currentQuestion]?.mechanics_data[0]?.mechanics_id ===
"mechanic_1"
"mechanic_1")
? 500
: stringLengths[0];
window.parent.postMessage({ type: "stringLengths", length }, "*");
Expand Down

0 comments on commit 9c8c29b

Please sign in to comment.