fix upvotecontainer bug

This commit is contained in:
feruz 2021-02-26 12:45:15 +02:00 committed by Nouman Tahir
parent e1cfb84992
commit b914f16c66

View File

@ -32,6 +32,7 @@ const UpvoteContainer = (props) => {
pinCode,
upvotePercent,
globalProps,
dispatch,
activeVotes = [],
} = props;
@ -51,8 +52,6 @@ const UpvoteContainer = (props) => {
};
const _setUpvotePercent = (value) => {
const { dispatch } = this.props;
if (value) {
setUpvotePercent(String(value));
dispatch(upvoteAction(value));