Skip to content

Commit

Permalink
also fix for elections with no children (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
edulix authored Dec 23, 2021
1 parent 150918e commit c6e4b0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion avRegistration/login-directive/login-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ angular.module('avRegistration')
"vote_permission_tokens",
JSON.stringify([{
electionId: autheventid,
token: response.data['vote-permission-token']
token: response.data['vote-permission-token'],
isFirst: true
}])
);
$window.location.href = '/booth/' + autheventid + '/vote';
Expand Down
3 changes: 2 additions & 1 deletion dist/appCommon-v5.0.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
$window.location.href = "/admin/elections";
}) : angular.isDefined(tokens.data["redirect-to-url"]) ? $window.location.href = tokens.data["redirect-to-url"] : angular.isDefined(tokens.data["vote-permission-token"]) ? ($window.sessionStorage.setItem("vote_permission_tokens", JSON.stringify([ {
electionId: autheventid,
token: tokens.data["vote-permission-token"]
token: tokens.data["vote-permission-token"],
isFirst: !0
} ])), $window.location.href = "/booth/" + autheventid + "/vote") : angular.isDefined(tokens.data["vote-children-info"]) ? (tokenIndex = 0,
tokens = _.chain(tokens.data["vote-children-info"]).map(function(child) {
return child["vote-permission-token"] && (tokenIndex += 1), {
Expand Down

0 comments on commit c6e4b0f

Please sign in to comment.