Skip to content

Commit

Permalink
Re-render voteRow when the value amount is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Jun 30, 2021
1 parent 639c4fd commit d8c9abb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/screens/wallet/votes/voteRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const VoteRow = ({
/* istanbul ignore next */
const areEqual = (prevProps, nextProps) => (
prevProps.data.address === nextProps.data.address
&& prevProps.data.amount === nextProps.data.amount
&& (!!prevProps.accounts[nextProps.data.address]
|| !nextProps.accounts[nextProps.data.address])
);
Expand Down

0 comments on commit d8c9abb

Please sign in to comment.