Skip to content

Commit a0cd139

Browse files
committed
MOBILE-3213 workshop: Fix static definition
1 parent c255fee commit a0cd139

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/addon/mod/workshop/providers/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class AddonModWorkshopHelperProvider {
6868
const task = this.getTask(tasks, taskCode);
6969

7070
if (task) {
71-
return task.completed;
71+
return !!task.completed;
7272
}
7373

7474
// Task not found, assume true.

src/addon/mod/workshop/providers/workshop.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class AddonModWorkshopProvider {
3333
static PHASE_ASSESSMENT = 30;
3434
static PHASE_EVALUATION = 40;
3535
static PHASE_CLOSED = 50;
36-
static EXAMPLES_VOLUNTARY: 0;
37-
static EXAMPLES_BEFORE_SUBMISSION: 1;
38-
static EXAMPLES_BEFORE_ASSESSMENT: 2;
36+
static EXAMPLES_VOLUNTARY = 0;
37+
static EXAMPLES_BEFORE_SUBMISSION = 1;
38+
static EXAMPLES_BEFORE_ASSESSMENT = 2;
3939
static SUBMISSION_TYPE_DISABLED = 0;
4040
static SUBMISSION_TYPE_AVAILABLE = 1;
4141
static SUBMISSION_TYPE_REQUIRED = 2;

0 commit comments

Comments
 (0)