Render: must return null instead of undefined

This commit is contained in:
infinite-persistence 2021-12-23 15:52:23 +08:00 committed by infinite-persistence
parent 198c191fd2
commit 379b9341ef

View file

@ -27,5 +27,5 @@ export default function LivestreamLink(props: Props) {
</Card> </Card>
); );
return claimUri && <ClaimPreview uri={claimUri} wrapperElement={element} type="inline" />; return claimUri ? <ClaimPreview uri={claimUri} wrapperElement={element} type="inline" /> : null;
} }