mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 10:52:16 +03:00
fixed issue with upvote downvote local cache swap not updating ui
This commit is contained in:
parent
5642819488
commit
06ea7e6bc4
@ -87,11 +87,8 @@ const UpvoteContainer = (props) => {
|
|||||||
incrementVoteCount();
|
incrementVoteCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDownvote) {
|
setIsDownVoted(isDownvote ? true : false);
|
||||||
setIsDownVoted(true);
|
setIsVoted(isDownvote ? false : true);
|
||||||
} else {
|
|
||||||
setIsVoted(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,11 +102,8 @@ const UpvoteContainer = (props) => {
|
|||||||
incrementVoteCount();
|
incrementVoteCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDownvote) {
|
setIsDownVoted(isDownvote ? true : false);
|
||||||
setIsDownVoted(true);
|
setIsVoted(isDownvote ? false : true);
|
||||||
} else {
|
|
||||||
setIsVoted(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
setTotalPayout(totalPayout + amountNum);
|
setTotalPayout(totalPayout + amountNum);
|
||||||
//update redux
|
//update redux
|
||||||
|
Loading…
Reference in New Issue
Block a user