Skip to content

Commit 289fcd5

Browse files
committed
MOBILE-3523 essay: Fix offline status when required attachments
1 parent bc7602a commit 289fcd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addon/qtype/essay/providers/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ export class AddonQtypeEssayHandler implements CoreQuestionHandler {
165165
return attachments && attachments.length >= Number(question.settings.attachmentsrequired) ? 1 : 0;
166166
}
167167

168-
return (hasTextAnswer || question.settings.responserequired == '0') &&
169-
(attachments && attachments.length > Number(question.settings.attachmentsrequired)) ? 1 : 0;
168+
return ((hasTextAnswer || question.settings.responserequired == '0') &&
169+
(attachments && attachments.length >= Number(question.settings.attachmentsrequired))) ? 1 : 0;
170170
}
171171

172172
/**

0 commit comments

Comments
 (0)