Browse Source

joy-election: listen to event on correct 'section'

Mokhtar Naamani 5 years ago
parent
commit
444a5171fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/joy-election/src/VoteForm.tsx

+ 1 - 1
packages/joy-election/src/VoteForm.tsx

@@ -184,7 +184,7 @@ class Component extends React.PureComponent<Props, State> {
     let hasVotedEvent = false;
     txResult.events.forEach((event, i) => {
       const { section, method } = event.event;
-      if (section === 'election' && method === 'Voted') {
+      if (section === 'councilElection' && method === 'Voted') {
         hasVotedEvent = true;
       }
     });