From 5b29ffc356732b6e12e16b7511868101e1bf72f9 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Thu, 16 Nov 2023 09:22:46 +0100 Subject: [PATCH] Check for positive value in an inline statement in reservation-info.tsx So instead of checking whether a material isn't digital (!isDigital) we check whether it is. Because it makes more logical sense. --- .../reservation-material/reservation-info.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/reservation-list/reservation-material/reservation-info.tsx b/src/apps/reservation-list/reservation-material/reservation-info.tsx index 36a9ae2ce6..bccca5287b 100644 --- a/src/apps/reservation-list/reservation-material/reservation-info.tsx +++ b/src/apps/reservation-list/reservation-material/reservation-info.tsx @@ -82,9 +82,9 @@ const ReservationInfo: FC = ({ percent={100} info={getInfo()} label={ - !isDigital - ? [pickupLibrary, pickupNumber || ""] - : [t("reservationListDigitalPickupText")] + isDigital + ? [t("reservationListDigitalPickupText")] + : [pickupLibrary, pickupNumber || ""] } reservationInfo={reservationInfo} openReservationDetailsModal={openReservationDetailsModal}