Skip to content

Commit

Permalink
chore(app): Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Naman-B-Parlecha committed Jan 9, 2025
1 parent 9440851 commit 0c37e74
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions eduaid_web/src/pages/Output.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ const Output = () => {
let y = 700; // Starting y position for content
let questionIndex = 1;

console.log("here inside downloading", qaPairs)

qaPairs.forEach((qaPair) => {
if (y < 50) {
page = pdfDoc.addPage();
Expand Down Expand Up @@ -194,8 +192,8 @@ const Output = () => {
`question${questionIndex}_answer`
);

options.forEach((option, index) => {
const drawRadioButton = (text, selected) => {
options.forEach((option) => {
const drawRadioButton = (text) => {
const radioOptions = {
x: 70,
y,
Expand All @@ -208,11 +206,6 @@ const Output = () => {
};
drawRadioButton(option, false);
});

if (questionIndex % 5 === 0) {
page = pdfDoc.addPage();
y = 700;
}
} else if (qaPair.question_type === "Short") {
// Text field for Short answer
const answerField = form.createTextField(
Expand Down

0 comments on commit 0c37e74

Please sign in to comment.