Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jun 22, 2024
1 parent 0d88e5a commit 43a74a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avBooth/booth-directive/booth-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ angular.module('avBooth')
previewResult.resolve(JSON.parse(scope.previewElection || sessionStorage.getItem(parseInt(attrs.electionId))));
}

previewResult
previewResult.promise
.then(function onSuccess(previewElection) {
var foundElection = previewElection.find(
function (element) {return element.id === parseInt(electionId);
Expand Down Expand Up @@ -978,7 +978,7 @@ angular.module('avBooth')
previewResult.resolve(JSON.parse(scope.previewElection || sessionStorage.getItem(parseInt(attrs.electionId))));
}

previewResult
previewResult.promise
.then(function onSuccess(previewElection) {
var foundElection;
if (electionId === undefined) {
Expand Down

0 comments on commit 43a74a0

Please sign in to comment.