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

Transaction list filtering not working properly - Closes #1912 #1915

Merged
merged 3 commits into from Apr 10, 2019

Conversation

massao
Copy link
Contributor

@massao massao commented Apr 9, 2019

What issue have I solved?

#1912

How have I implemented/fixed it?

The problem here was with the transctionUpdated action, since the filter was being changed after the request was sent, it was fetching the wrong data and dispatching to the store, so it got the filtered and the updated data mixed.
I added a condition to only dispatch to the store if the filter didn't change between the action being called and the data being fetched.

How has this been tested?

  1. Go to the wallet
  2. Click incoming/outgoing tabs until you get incoming tx in outgoing tab.

Tested with cypress locally a lot of times, and couldn't get the error to happen again, event when making the network slower.

Review checklist

@massao massao self-assigned this Apr 9, 2019
michaeltomasik
michaeltomasik previously approved these changes Apr 9, 2019
Copy link
Contributor

@michaeltomasik michaeltomasik left a comment

Choose a reason for hiding this comment

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

👍

@massao massao requested a review from Efefefef April 9, 2019 15:53
Copy link
Contributor

@Efefefef Efefefef left a comment

Choose a reason for hiding this comment

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

🥇

@Efefefef Efefefef added the ready label Apr 10, 2019
@massao massao merged commit 6a1247f into 1.15.0 Apr 10, 2019
@massao massao deleted the 1912-transaction-list-filtering-not-working-properly branch April 10, 2019 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants