Skip to content

Commit

Permalink
Use transactionId to group parallel reservations, not record ID
Browse files Browse the repository at this point in the history
..which can be different from reservation to reservation, even if they
are parallel
  • Loading branch information
Adamik10 committed Jun 25, 2024
1 parent 2136c89 commit aeec433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/useGetReservationGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type ReservationGroupDetails = Omit<
function groupReservations(data: ReservationDetailsV2[]) {
const reservationGroups = groupBy(data, (reservation) => {
if (reservation.reservationType === "parallel") {
return reservation.recordId;
return reservation.transactionId;
}
return reservation.reservationId;
});
Expand Down

0 comments on commit aeec433

Please sign in to comment.