Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling poll worker card during paper load state, before paper is loaded, should end the session #3974

Closed
kshen0 opened this issue Sep 14, 2023 · 0 comments
Assignees

Comments

@kshen0
Copy link
Contributor

kshen0 commented Sep 14, 2023

If the poll worker card is removed during the paper load state, the frontend advances to the "Begin Voting" screen.

Ignore the note below. Now that we poll for auth in the state machine this is a fast fix.

--

It's a little tricky to handle this in the state machine because the state machine doesn't subscribe to auth changes. We can handle in the frontend by checking for the accepting_paper state in app_root where we render the Ballot like

if (stateMachineState === 'accepting_paper') {
  return <NoPaperLoadedPage />;
}

return <BallotContext.Provider> ...
</BallotContextProvider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant