bugsfixed and design changes for generation 13'' screen
This commit is contained in:
@@ -14,7 +14,7 @@ export type RootActions =
|
||||
{ type: 'UPDATE_TIMERS'; payload: { timeSpent: number; inactivity: number; timeSpentCurrentModule: number; } } |
|
||||
{ type: 'FINALIZE_MODULE'; payload: { updateTimers: boolean } } |
|
||||
{ type: 'FINALIZE_MODULE_SOLUTIONS' } |
|
||||
{ type: 'UPDATE_EXAMS'}
|
||||
{ type: 'UPDATE_EXAMS' }
|
||||
|
||||
|
||||
export type Action = RootActions | SessionActions;
|
||||
@@ -130,7 +130,7 @@ export const rootReducer = (
|
||||
if (state.flags.reviewAll) {
|
||||
const notLastModule = state.moduleIndex < state.selectedModules.length - 1;
|
||||
const moduleIndex = notLastModule ? state.moduleIndex + 1 : -1;
|
||||
|
||||
|
||||
if (notLastModule) {
|
||||
return {
|
||||
questionIndex: 0,
|
||||
@@ -152,7 +152,7 @@ export const rootReducer = (
|
||||
moduleIndex: -1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
case 'UPDATE_EXAMS': {
|
||||
const exams = state.exams.map((e) => updateExamWithUserSolutions(e, state.userSolutions));
|
||||
|
||||
Reference in New Issue
Block a user