Skip to content

Commit

Permalink
Update Seating.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VidwaDeSeram committed Jan 4, 2024
1 parent 911da24 commit 10b18a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/pages/Seating.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...",
Expand Down Expand Up @@ -108,6 +108,7 @@ export default function Seating() {
title: "Error",
text: "An error occurred while booking.",
});
setLoading(false);
}
};

Expand Down

0 comments on commit 10b18a4

Please sign in to comment.