Skip to content

Commit

Permalink
Merge pull request Sunbird-ALL#188 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 Oct 25, 2024
2 parents c0b9599 + 9ad5e06 commit c2efda6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +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"
"mechanic_1"
? 500
: stringLengths[0];
window.parent.postMessage({ type: "stringLengths", length }, "*");
Expand Down

0 comments on commit c2efda6

Please sign in to comment.