fix: don't add question mark to end of morph activity question (#1464)

This commit is contained in:
ggurdin 2025-01-15 14:40:00 -05:00 committed by GitHub
parent 8852a2e41f
commit fe34444797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,8 +91,11 @@ class MorphActivityGenerator {
langCode: req.userL2,
activityType: ActivityTypeEnum.morphId,
content: ActivityContent(
question:
"${getMorphologicalCategoryCopy(morphFeature, MatrixState.pangeaController.matrixState.context) ?? ""}?",
question: getMorphologicalCategoryCopy(
morphFeature,
MatrixState.pangeaController.matrixState.context,
) ??
morphFeature,
choices: distractors + [morphTag],
answers: [morphTag],
spanDisplayDetails: null,