summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-30 16:47:55 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-30 16:51:37 +0200
commit8995341d43efe16f307b55f200821944cfecf4c8 (patch)
tree30daaa7327eb0a559adb1b59437a971bfb2f5d2e /js
parentbe66c44e2b882219c44bcf0de3238f6e3d62cfad (diff)
Correctly access solution in user problem data
Diffstat (limited to 'js')
-rw-r--r--js/codeq/problem.js4
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
+})();