Skip to content

Commit

Permalink
🐞 disable election chooser doesn't work in preview (#347)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#138
  • Loading branch information
Findeton committed Jul 19, 2023
1 parent ba90739 commit d84fc7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ angular.module('avBooth')
.childrenElectionInfo
.natural_order;
// If it's a demo booth, do not rely on election credentials
if (scope.isDemo) {
if (scope.isDemo || scope.isPreview) {
scope.increaseDemoElectionIndex();
if (scope.demoElectionIndex < orderedElectionIds.length) {
chooseElection(
Expand Down

0 comments on commit d84fc7a

Please sign in to comment.