From 8995341d43efe16f307b55f200821944cfecf4c8 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 30 Sep 2015 16:47:55 +0200 Subject: Correctly access solution in user problem data --- js/codeq/problem.js | 4 ++-- 1 file 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 +})(); -- cgit v1.2.1