From 1cb15524341fca9d681ccc087ebf40b159d467c5 Mon Sep 17 00:00:00 2001 From: Ajinkya Pande Date: Tue, 29 Oct 2024 15:08:26 +0530 Subject: [PATCH] Issueid #0000 iframe height for fill in the blanks --- src/views/Practice/Practice.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/Practice/Practice.jsx b/src/views/Practice/Practice.jsx index 5fd15360..a2bfe855 100644 --- a/src/views/Practice/Practice.jsx +++ b/src/views/Practice/Practice.jsx @@ -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 }, "*");