M cmd/tallyard/main.go => cmd/tallyard/main.go +1 -1
@@ 129,7 129,7 @@ func main() {
}()
el := ui.TUI(client, data.Elections)
- if el == nil {
+ if el == nil || el.LocalVoter.Ballot == nil {
// user likely hit C-c
return
}
M ui/tui.go => ui/tui.go +1 -1
@@ 111,7 111,7 @@ func RoomTUI(client *mautrix.Client, roomID id.RoomID, elections *election.Elect
el = elections.GetI(i - 1)
// don't need to lock because this goroutine controls LocalVoter
if el.LocalVoter != nil {
- if el.LocalVoter.Ballot != nil {
+ if el.LocalVoter.Ballot == nil {
ElectionTUI(client, el)
}
} else if joinElectionConfirmation(el) {