diff options
-rw-r--r-- | js/codeq/problem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/problem.js b/js/codeq/problem.js index f6331b3..e3de85a 100644 --- a/js/codeq/problem.js +++ b/js/codeq/problem.js @@ -266,7 +266,7 @@ .spread(function (userProblemData, generalProblemData) { if (userProblemData.code !== 0) throw new Error('Failed to obtain user problem data, code: ' + userProblemData.code + ', message: ' + userProblemData.message); if (!generalProblemData) throw new Error('General problem data is not defined'); - codeq.globalStateMachine.transition(language, generalProblemData, data.commonDef, userProblemData.solution); + codeq.globalStateMachine.transition(language, generalProblemData, data.commonDef, userProblemData.data.solution); }) ) .fail(function (reason) { @@ -382,4 +382,4 @@ $('#navigation-problem').css('display', 'none').removeClass("active"); } }); -})();
\ No newline at end of file +})(); |