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 9c15c43 + 231bf26 commit 17e6e83
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 17e6e83

Please sign in to comment.