Skip to content

Commit

Permalink
Small fix for zero-as-false in JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
bensaufley committed Jan 1, 2025
1 parent 1fb7770 commit a5eba70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/BookModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const BookModal = () => {
</div>
<div class="col-8">
{selectedBook.value?.title}
{selectedBook.value?.Authors?.length && (
{!!selectedBook.value?.Authors?.length && (
<small class="d-block">
by{' '}
{selectedBook.value?.Authors.map(({ firstName, lastName }) => `${firstName || ''} ${lastName}`).join(
Expand Down

0 comments on commit a5eba70

Please sign in to comment.