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 b0ef707 commit 0c626ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avBooth/booth-directive/booth-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,8 @@ angular.module('avBooth')

var ballotBoxData;
var authapiData;
var electionPromise = $q.defer();
var electionFuture = $q.defer();
var electionPromise = electionFuture.promise;
if (!scope.isPreview) {
electionPromise = $http.get(
scope.baseUrl + "election/" + scope.electionId,
Expand Down Expand Up @@ -1006,7 +1007,7 @@ angular.module('avBooth')
authapiData = ElectionCreation.generateAuthapiResponse(foundElection);
ballotBoxData = ElectionCreation.generateBallotBoxResponse(foundElection);

electionPromise.resolve({
electionFuture.resolve({
data: {
payload: ballotBoxData
}
Expand Down

0 comments on commit 0c626ae

Please sign in to comment.