mirror of
https://github.com/memodack/memodack.git
synced 2026-07-22 05:35:52 +00:00
fix: hide help text
This commit is contained in:
parent
05dee64f5f
commit
cbe2f9d88e
1 changed files with 3 additions and 1 deletions
|
|
@ -39,10 +39,12 @@ export class QuestsService implements IQuestsService {
|
|||
const shuffleAnswers = this.randomService.shuffleArray(answers);
|
||||
const correctAnswerId = shuffleAnswers.indexOf(q1);
|
||||
|
||||
const helpText = JSON.stringify(word.value) === JSON.stringify(word?.text) ? null : word?.text;
|
||||
|
||||
const questItem = new QuestItem({
|
||||
imageUrl: word?.imageUrl,
|
||||
question: word.value,
|
||||
helpText: word?.text,
|
||||
helpText,
|
||||
answers: shuffleAnswers,
|
||||
correctAnswerId,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue