Skip to content

Commit

Permalink
fix(booking-hooks): accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandropremoli committed Dec 18, 2024
1 parent 5f9178a commit b703c8a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/queries/bookingHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ export const useDeleteBooking = (bookingId: number) => {

return useMutation(() => bookingClient.deleteBookingRaw({ bookingId }), {
onSuccess() {
AccessibilityInfo.announceForAccessibility(
t('bookingScreen.cancelFeedback'),
);
setTimeout(() => {
AccessibilityInfo.announceForAccessibility(
t('bookingScreen.cancelFeedback'),
);
}, 1200);
return Promise.all([
client.invalidateQueries(BOOKINGS_QUERY_KEY),
client.invalidateQueries(['agenda']),
Expand Down

0 comments on commit b703c8a

Please sign in to comment.