From 4971d5ee53002f59c94b76a6e65587c4a4b42572 Mon Sep 17 00:00:00 2001 From: 230417 <230417@epvc.pt> Date: Tue, 10 Mar 2026 16:14:43 +0000 Subject: [PATCH] refactor: Safely access shop properties with optional chaining and reorder the shop null check in the Booking page. --- web/src/pages/Booking.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/web/src/pages/Booking.tsx b/web/src/pages/Booking.tsx index 793e718..76c5e42 100644 --- a/web/src/pages/Booking.tsx +++ b/web/src/pages/Booking.tsx @@ -29,10 +29,8 @@ export default function Booking() { const [date, setDate] = useState(''); const [slot, setSlot] = useState(''); - if (!shop) return