diff --git a/app/assets/javascripts/tutor.ts b/app/assets/javascripts/tutor.ts index a4f402ebb5..f185630d11 100644 --- a/app/assets/javascripts/tutor.ts +++ b/app/assets/javascripts/tutor.ts @@ -83,7 +83,7 @@ export function initTutor(submissionCode: string): void { } } - async function loadTutor(exerciseId: string, studentCode: string, statements: string, stdin: string, inlineFiles: Record, hrefFiles: Record): void { + async function loadTutor(exerciseId: string, studentCode: string, statements: string, stdin: string, inlineFiles: Record, hrefFiles: Record): Promise { if (!traceGenerator) { // only setup the traceGenerator upon first use, as it is a heavy operation traceGenerator = new TraceGenerator();