Skip to content

Commit

Permalink
chore(room-booking): do not show alert on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Oct 16, 2024
1 parent 4005967 commit 0244987
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/room-booking/BookingTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ roomBookingFetch
})
.catch((err) => {
console.error("Failed to load rooms:", err);
// eslint-disable-next-line no-alert
alert("Failed to load rooms. Try again later.");
// TODO: show error message to the user.
});
// TODO: remove this, when backend will return booking UIDs.
Expand Down Expand Up @@ -242,8 +241,7 @@ roomBookingFetch
})
.catch((err) => {
console.error("Failed to load bookings:", err);
// eslint-disable-next-line no-alert
alert("Failed to load bookings. Try again later.");
// TODO: show error message to the user.
});
const actualBookingsByRoomSorted = computed(() => {
Expand Down

0 comments on commit 0244987

Please sign in to comment.