Skip to content

Commit

Permalink
BUG: Undefined answer for salt challenge check
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ion committed Jan 7, 2025
1 parent 93cac1d commit 8f9599d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trainingportal/static/submitCodeCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ app.controller("submitCodeCtrl", function($scope, $http, $routeParams) {
var moduleId = $routeParams.moduleId;
var challengeId = $routeParams.challengeId;
var challengeType = $routeParams.challengeType;
var answerValue = answer.value;
var answerValue = "";
if(typeof answer !== "undefined") answerValue = answer.value;

var challengeCodeValue = "";
if(typeof challengeCode !== "undefined"){
challengeCodeValue = challengeCode.value
Expand Down

0 comments on commit 8f9599d

Please sign in to comment.