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