ENCOA-312

This commit is contained in:
Carlos-Mesquita
2025-01-13 21:02:34 +00:00
parent ccbbf30058
commit 6f9be29cd8
9 changed files with 34 additions and 23 deletions

View File

@@ -153,14 +153,14 @@ export const defaultSectionSettings = (module: Module, sectionId: number, part?:
}
const defaultModuleSettings = (module: Module, minTimer: number): ModuleState => {
const defaultModuleSettings = (module: Module, minTimer: number, reset: boolean = false): ModuleState => {
const state: ModuleState = {
examLabel: defaultExamLabel(module),
minTimer,
difficulty: [sample(["A1", "A2", "B1", "B2", "C1", "C2"] as Difficulty[])!],
isPrivate: true,
sectionLabels: sectionLabels(module),
expandedSections: [1],
expandedSections: [(reset && (module === "writing" || module === "speaking")) ? 0 : 1],
focusedSection: 1,
sections: [defaultSectionSettings(module, 1)],
importModule: true,