mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
Update src/utils/postParser.js
This commit is contained in:
parent
495f11aabc
commit
8e16e2fb99
@ -150,7 +150,7 @@ export const parseComments = async (comments, currentUserName) => {
|
||||
|
||||
const isVoted = (activeVotes, currentUserName) => {
|
||||
const result = activeVotes.find(
|
||||
element => element.voter === currentUserName && element.percent > 0,
|
||||
element => get(element, 'voter') === currentUserName && get(element, 'percent', 0) > 0,
|
||||
);
|
||||
if (result) {
|
||||
return result.percent;
|
||||
|
Loading…
Reference in New Issue
Block a user