diff --git a/app/assets/javascripts/mumuki_laboratory/application/bridge.js b/app/assets/javascripts/mumuki_laboratory/application/bridge.js index c6279cb3f..7a8fa7a34 100644 --- a/app/assets/javascripts/mumuki_laboratory/application/bridge.js +++ b/app/assets/javascripts/mumuki_laboratory/application/bridge.js @@ -54,7 +54,7 @@ mumuki.bridge = (() => { if(lastSubmission){ return $.Deferred().resolve(lastSubmission); } else { - return this._sendNewSolution(submission).done(function (result) { + return this._sendNewSolution(submission).done((result) => { mumuki.SubmissionsStore.setLastSubmission(mumuki.currentExerciseId, this._buildLastSubmission(submission, result)); }); }