Skip to content

Commit cb4d0e4

Browse files
committed
reenable csc machine for scheme
1 parent a647a15 commit cb4d0e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commons/sagas/WorkspaceSaga/helpers/evalCode.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { notifyStoriesEvaluated } from 'src/features/stories/StoriesActions';
1313
import { EVAL_STORY } from 'src/features/stories/StoriesTypes';
1414

1515
import { EventType } from '../../../../features/achievement/AchievementTypes';
16-
import { OverallState } from '../../../application/ApplicationTypes';
16+
import { isSchemeLanguage, OverallState } from '../../../application/ApplicationTypes';
1717
import {
1818
BEGIN_DEBUG_PAUSE,
1919
BEGIN_INTERRUPT_EXECUTION,
@@ -94,7 +94,8 @@ export function* evalCode(
9494
.currentStep
9595
)
9696
: -1;
97-
const cseActiveAndCorrectChapter = context.chapter >= 3 && cseIsActive;
97+
const cseActiveAndCorrectChapter =
98+
(isSchemeLanguage(context.chapter) || context.chapter >= 3) && cseIsActive;
9899
if (cseActiveAndCorrectChapter) {
99100
context.executionMethod = 'cse-machine';
100101
}

0 commit comments

Comments
 (0)