From b703c8aedef190f47ca767dd64ecfb70cccfd75b Mon Sep 17 00:00:00 2001 From: alessandropremoli Date: Wed, 18 Dec 2024 16:30:23 +0100 Subject: [PATCH] fix(booking-hooks): accessibility --- src/core/queries/bookingHooks.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/queries/bookingHooks.ts b/src/core/queries/bookingHooks.ts index eb02453c..e028f109 100644 --- a/src/core/queries/bookingHooks.ts +++ b/src/core/queries/bookingHooks.ts @@ -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']),