Skip to content

Commit

Permalink
🐛 Fix voteUrlProcessor to handle same link again
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Jan 14, 2019
1 parent b3bb0d5 commit d55eede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/voteUrlProcessor/voteUrlProcessor.js
Expand Up @@ -67,11 +67,13 @@ export default class VoteUrlProcessor extends React.Component {
this.props.clearVoteLookupStatus();
this.props.clearVotes();
this.props.toggleShowInfo(false);
this.props.history.push(routes.delegates.path);
}

onCloseInfo() {
Piwik.trackingEvent('VoteUrlProcessor', 'button', 'Close info');
this.props.toggleShowInfo(false);
this.props.history.push(routes.delegates.path);
}

render() {
Expand Down
1 change: 1 addition & 0 deletions src/components/voteUrlProcessor/voteUrlProcessor.test.js
Expand Up @@ -31,6 +31,7 @@ describe('VoteUrlProcessor', () => {
search: '',
},
listen: () => {},
push: () => {},
},
urlVoteCount: 0,
t: key => key,
Expand Down

0 comments on commit d55eede

Please sign in to comment.