mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +03:00
Update src/utils/postParser.js
This commit is contained in:
parent
9578dfa4fd
commit
76abc9a16a
@ -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