Skip to content

Commit 20d3adc

Browse files
authored
🐞 Logo displayed incorrectly (#473) (#474)
Parent issue: sequentech/meta#1016
1 parent 6429a3f commit 20d3adc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

avBooth/booth-directive/booth-directive.js

+8
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,13 @@ angular.module('avBooth')
978978
return futureResult.promise;
979979
}
980980

981+
function setParentElection() {
982+
if (!scope.parentElection) {
983+
return;
984+
}
985+
scope.election = scope.parentElection;
986+
}
987+
981988
function retrieveElectionConfig(electionId) {
982989
if (scope.state === stateEnum.errorScreen) {
983990
return;
@@ -1366,6 +1373,7 @@ angular.module('avBooth')
13661373
getSessionEndTime: getSessionEndTime,
13671374
getSessionStartTime: getSessionStartTime,
13681375
isStateCompatibleWithCountdown: isStateCompatibleWithCountdown,
1376+
setParentElection: setParentElection,
13691377

13701378
// stateData stores information used by the directive being shown.
13711379
// Its content depends on the current state.

avBooth/success-screen-directive/success-screen-directive.js

+1
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ angular.module('avBooth')
574574
// redirects to next election
575575
scope.goToNextElection = function () {
576576
scope.setState(scope.stateEnum.electionChooserScreen, {});
577+
scope.setParentElection();
577578
};
578579

579580
scope.skippedCount = skippedCount();

0 commit comments

Comments
 (0)