From 264de80947a035930d926bea2a88b52b75b22b49 Mon Sep 17 00:00:00 2001 From: YassinL Date: Fri, 20 Sep 2024 16:58:35 +0200 Subject: [PATCH] (PC-31778) refacto wording after review --- src/features/bookings/pages/Bookings/Bookings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/bookings/pages/Bookings/Bookings.tsx b/src/features/bookings/pages/Bookings/Bookings.tsx index 28dbb34b0b8..0c9e34f7f17 100644 --- a/src/features/bookings/pages/Bookings/Bookings.tsx +++ b/src/features/bookings/pages/Bookings/Bookings.tsx @@ -31,12 +31,12 @@ export function Bookings() { .filter((ended_booking) => ended_booking.userReaction === null) .map((booking) => booking.stock.offer.id) ?? [] - const bookingsTest = bookingsToUpdate.map((bookingId) => ({ + const mutationPayload = bookingsToUpdate.map((bookingId) => ({ offerId: bookingId, reactionType: ReactionTypeEnum.NO_REACTION, })) - if (bookingsTest.length > 0) { - addReaction({ reactions: bookingsTest }) + if (mutationPayload.length > 0) { + addReaction({ reactions: mutationPayload }) } }, [addReaction, bookings?.ended_bookings])