Skip to content

Commit

Permalink
(PC-31778) refacto wording after review
Browse files Browse the repository at this point in the history
  • Loading branch information
yleclercq-pass committed Sep 20, 2024
1 parent a83096b commit 264de80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/bookings/pages/Bookings/Bookings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 264de80

Please sign in to comment.