From f89d2b11a2f35f62af4765e17cf1916e357ce9b2 Mon Sep 17 00:00:00 2001 From: eznarf <41272412+eznarf@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:31:47 -0700 Subject: [PATCH] Removing voter id textbox if voter access is open --- packages/frontend/src/components/Election/VoterAuth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/Election/VoterAuth.tsx b/packages/frontend/src/components/Election/VoterAuth.tsx index 52bb2d80..7863bda2 100644 --- a/packages/frontend/src/components/Election/VoterAuth.tsx +++ b/packages/frontend/src/components/Election/VoterAuth.tsx @@ -35,7 +35,7 @@ const VoterAuth = () => { const isOpen = election.state === "open" - const voterIdRequired = election.settings?.voter_authentication?.voter_id + const voterIdRequired = election.settings?.voter_authentication?.voter_id && election.settings.voter_access === 'closed' const emailRequired = election.settings?.voter_authentication?.email const isAuthorized = voterAuth?.authorized_voter