Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Retain votes after cleaned search box - Closes #916 #922

Merged
merged 3 commits into from
Oct 26, 2017

Conversation

reyraa
Copy link
Contributor

@reyraa reyraa commented Oct 25, 2017

What's the issue?
Presently we keep the search term in Redux store, but at the time of developing this component we just kept vote list, delegates list and refresh flag. So now changes in the search term cause unintended trigger of loadVotedDelegates.

How did I solve?
Instead of listening for changes of properties, I check if refreshDelegates has been changed from false to true.

There are some other minor code cleanups in this PR.

Closes #916

Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @reyraa

@reyraa reyraa merged commit bb6bd3b into 1.2.1 Oct 26, 2017
@reyraa reyraa deleted the 916-search-vote-bug branch October 26, 2017 07:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants