We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d79b3a commit 75e6a67Copy full SHA for 75e6a67
js/src/forum/components/Voters.tsx
@@ -51,10 +51,8 @@ export default class Voters extends Component<VotersAttrs> {
51
}
52
53
view() {
54
- const votes = this.attrs.post.votes();
55
- const upvotes = this.attrs.post.upvotes();
56
-
57
- if (votes == null || !upvotes) {
+ // @ts-ignore
+ if (this.attrs.post.votes() === false || this.attrs.post.upvotes() === false) {
58
return (
59
<div className="VotingContainer">
60
<div className="FoFGamification-voters">
0 commit comments