Skip to content

Commit

Permalink
Check for positive value in an inline statement in reservation-info.tsx
Browse files Browse the repository at this point in the history
So instead of checking whether a material isn't digital (!isDigital) we
check whether it is. Because it makes more logical sense.
  • Loading branch information
Adamik10 committed Nov 16, 2023
1 parent d731fc8 commit aa29c1d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const ReservationInfo: FC<ReservationInfoProps> = ({
percent={100}
info={getInfo()}
label={
!isDigital
? [pickupLibrary, pickupNumber || ""]
: [t("reservationListDigitalPickupText")]
isDigital
? [t("reservationListDigitalPickupText")]
: [pickupLibrary, pickupNumber || ""]
}
reservationInfo={reservationInfo}
openReservationDetailsModal={openReservationDetailsModal}
Expand Down

0 comments on commit aa29c1d

Please sign in to comment.