Skip to content

Commit

Permalink
Fix bad comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jevakallio committed Oct 27, 2023
1 parent fe276dc commit 1866ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/PollUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function PollUI({
if (message.votes) {
setVotes(message.votes);
}
if (message.ownVote) {
if (message.ownVote !== undefined) {
setVote(message.ownVote);
}
},
Expand Down

0 comments on commit 1866ca8

Please sign in to comment.