diff --git a/src/addon/qtype/essay/providers/handler.ts b/src/addon/qtype/essay/providers/handler.ts index 527b8505f..54c45ebd0 100644 --- a/src/addon/qtype/essay/providers/handler.ts +++ b/src/addon/qtype/essay/providers/handler.ts @@ -165,8 +165,8 @@ export class AddonQtypeEssayHandler implements CoreQuestionHandler { return attachments && attachments.length >= Number(question.settings.attachmentsrequired) ? 1 : 0; } - return (hasTextAnswer || question.settings.responserequired == '0') && - (attachments && attachments.length > Number(question.settings.attachmentsrequired)) ? 1 : 0; + return ((hasTextAnswer || question.settings.responserequired == '0') && + (attachments && attachments.length >= Number(question.settings.attachmentsrequired))) ? 1 : 0; } /**