Merge pull request #1209 from ausbitbank/patch-1

Typo: vote_perecent to vote_percent
This commit is contained in:
uğur erdal 2019-10-12 15:34:47 +03:00 committed by GitHub
commit ededc5746f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ const parseActiveVotes = (post, currentUserName) => {
if (!isEmpty(post.active_votes)) {
forEach(post.active_votes, value => {
post.vote_perecent = value.voter === currentUserName ? value.percent : null;
post.vote_percent = value.voter === currentUserName ? value.percent : null;
value.value = (value.rshares * ratio).toFixed(3);
value.reputation = getReputation(get(value, 'reputation'));
value.percent /= 100;