Typo: vote_perecent to vote_percent

This commit is contained in:
ausbitbank 2019-10-12 21:24:38 +10:00 committed by GitHub
parent 6a7de6391b
commit 96ee24a5c8
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;