Help typescript out a bit

This commit is contained in:
Jackson Harper 2023-02-27 15:12:09 +08:00
parent e9ae311559
commit be395019ec

View file

@ -164,7 +164,7 @@ export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
{props.item.wordsCount ?? 0 > 0
? `${Math.max(
1,
Math.round(props.item.wordsCount / 235)
Math.round(props.item.wordsCount ?? 0 / 235)
)} min read`
: null}
</Box>