From 10b18a4eebb6552f84bc100040c71a1a08c1f124 Mon Sep 17 00:00:00 2001 From: Vidwa De Seram Date: Thu, 4 Jan 2024 19:58:02 +0530 Subject: [PATCH] Update Seating.js --- client/src/components/pages/Seating.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/pages/Seating.js b/client/src/components/pages/Seating.js index 429399c..cb81c39 100644 --- a/client/src/components/pages/Seating.js +++ b/client/src/components/pages/Seating.js @@ -45,7 +45,7 @@ export default function Seating() { }, [id, showTimeId]); const handleBooking = async () => { - if (bookedSeats.length === 0) { + if (selectedSeats.length === 0) { Swal.fire({ icon: "error", title: "Oops...", @@ -108,6 +108,7 @@ export default function Seating() { title: "Error", text: "An error occurred while booking.", }); + setLoading(false); } };