Skip to content

Commit

Permalink
Fixed error occurring when you don't have a vote on the poll
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Sep 19, 2023
1 parent 6f81007 commit 8f4a333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/PollPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PollPost {
downvoted: !!isDownvoted,
isOwner: postOwner._id.toString() === userRequesting._id.toString(),
interacted: !!isUpvoted || !!isDownvoted,
votedFor: pollVote.vote
votedFor: pollVote?.vote || "None"
}

if (isUpvoted) {
Expand Down

0 comments on commit 8f4a333

Please sign in to comment.