Skip to content

Commit f8efc3c

Browse files
committed
fix: use questionKey
1 parent 02910bb commit f8efc3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/quizzes/questionBank.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ const questionBank = Object.entries(questionBankConfig).reduce(
145145
explanation: `${id}-explanation`,
146146
}
147147
}),
148-
correctAnswerId: `${topicKey}-${charFromIdx(correctAnswer - 1)}`,
148+
correctAnswerId: `${questionKey}-${charFromIdx(correctAnswer - 1)}`,
149149
}
150150
// Add question object to accumulator
151-
acc[`${topicKey}-${idx + 1}`] = questionObject
151+
acc[questionKey] = questionObject
152152
}
153153
return acc
154154
},

0 commit comments

Comments
 (0)