Skip to content

Commit

Permalink
Merge pull request #48 from DFanso/api-connections
Browse files Browse the repository at this point in the history
Update Seating.js
  • Loading branch information
VidwaDeSeram authored Jan 4, 2024
2 parents 911da24 + 10b18a4 commit d55cf93
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 d55cf93

Please sign in to comment.