updating vote amount in real time

This commit is contained in:
Nouman Tahir 2021-04-26 01:16:57 +05:00
parent 0891929ee0
commit 7195442e38

View File

@ -111,6 +111,7 @@ const UpvoteContainer = (props) => {
setIsVoted(true);
}
setTotalPayout(totalPayout + amountNum);
//update redux
const postId = get(content, 'post_id');
const vote = {