mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
fix upvotecontainer bug
This commit is contained in:
parent
e1cfb84992
commit
b914f16c66
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user