Skip to content

Commit

Permalink
Use null instead of empty fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Oct 15, 2024
1 parent e90494b commit 565f263
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const VoteWeight = () => {
})()
}, [client, election])

if (!weight || !election || !(election instanceof PublishedElection)) return <></>
if (!weight || !election || !(election instanceof PublishedElection)) return null

return (
<chakra.div __css={styles.wrapper}>
Expand Down

0 comments on commit 565f263

Please sign in to comment.