Closed refiloemopeloa closed 4 days ago
Resolved:
Problem: Reservation state was not updating after reservation was made.
Solution: Created onReservationMade
function in Add Reservation page and handleReservationMade
function in Restaurant page. onReservationMade
is called in Add Reservation page and calls handleReservationMade
function, which is passed as an argument. This updates reservations every time a new reservation is made.
Resolved:
Problem: Similar to add comment, reservation state was not being updated.
Solution: Similar solution to add comment.
https://github.com/user-attachments/assets/992bddfe-a8bb-4d3e-8651-9c1ded496f47
Delete reservation
Expected: When a user has an active reservation and deletes it, then they should be able to add another reservation.
Actual: User is being prevented from adding reservation with alert "You have an active reservation", followed by an empty reservation screen.
Add reservation
Expected: When a makes a reservation, then they shouldn't be able to make another reservation and should be directed to the reservation history popup.
Actual: User is able to make another reservation after making one before.
https://github.com/user-attachments/assets/c844ca0a-8f3c-4004-be98-194241921648