Skip to content

Commit

Permalink
🐞 Logo displayed incorrectly (#473)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#1016
  • Loading branch information
Findeton committed Sep 27, 2024
1 parent f146992 commit 6e30cc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions avBooth/booth-directive/booth-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,13 @@ angular.module('avBooth')
return futureResult.promise;
}

function setParentElection() {
if (!scope.parentElection) {
return;
}
scope.election = scope.parentElection;
}

function retrieveElectionConfig(electionId) {
if (scope.state === stateEnum.errorScreen) {
return;
Expand Down Expand Up @@ -1366,6 +1373,7 @@ angular.module('avBooth')
getSessionEndTime: getSessionEndTime,
getSessionStartTime: getSessionStartTime,
isStateCompatibleWithCountdown: isStateCompatibleWithCountdown,
setParentElection: setParentElection,

// stateData stores information used by the directive being shown.
// Its content depends on the current state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ angular.module('avBooth')
// redirects to next election
scope.goToNextElection = function () {
scope.setState(scope.stateEnum.electionChooserScreen, {});
scope.setParentElection();
};

scope.skippedCount = skippedCount();
Expand Down

0 comments on commit 6e30cc8

Please sign in to comment.