Skip to content

Commit

Permalink
Remove ternaries from HoldConfirmationItemDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Dec 10, 2024
1 parent c2cf8c3 commit 122cded
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/HoldPages/HoldConfirmationItemDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@ const HoldConfirmationItemDetails = ({
mb="l"
mt={0}
>
{pickupLocationLabel ? (
{pickupLocationLabel && (
<PlainTextElement
label="Pickup location"
value={[pickupLocationLabel]}
/>
) : (
<></>
)}
<PlainTextElement label="Call number" value={[item.callNumber]} />
{item.barcode ? (
{item.barcode && (
<PlainTextElement label="Barcode" value={[item.barcode]} />
) : (
<></>
)}
</List>
)
Expand Down

0 comments on commit 122cded

Please sign in to comment.