icoa-cli 2.14.2 → 2.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/demo-exam.js +1 -1
- package/dist/lib/exam-state.js +2 -0
- package/package.json +1 -1
package/dist/lib/demo-exam.js
CHANGED
package/dist/lib/exam-state.js
CHANGED
|
@@ -30,6 +30,8 @@ export function getExamDeadline() {
|
|
|
30
30
|
const state = getExamState();
|
|
31
31
|
if (!state)
|
|
32
32
|
return null;
|
|
33
|
+
if (!state.session.durationMinutes)
|
|
34
|
+
return null; // 0 = no time limit
|
|
33
35
|
const start = new Date(state.session.startedAt).getTime();
|
|
34
36
|
return new Date(start + state.session.durationMinutes * 60 * 1000);
|
|
35
37
|
}
|