Skip to content

Commit 75e6a67

Browse files
chore: change condition when loading indicator is shown (again)
1 parent 4d79b3a commit 75e6a67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/src/forum/components/Voters.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ export default class Voters extends Component<VotersAttrs> {
5151
}
5252

5353
view() {
54-
const votes = this.attrs.post.votes();
55-
const upvotes = this.attrs.post.upvotes();
56-
57-
if (votes == null || !upvotes) {
54+
// @ts-ignore
55+
if (this.attrs.post.votes() === false || this.attrs.post.upvotes() === false) {
5856
return (
5957
<div className="VotingContainer">
6058
<div className="FoFGamification-voters">

0 commit comments

Comments
 (0)