Merged in fix/booking-flow-eslint-fix (pull request #3342)
fix: Upgrade booking-flow eslint config * Upgrade booking-flow eslint config Approved-by: Bianca Widstam
This commit is contained in:
@@ -26,6 +26,7 @@ export function BookingConfirmationProvider({
|
||||
const intl = useIntl()
|
||||
const storeRef = useRef<BookingConfirmationStore>(undefined)
|
||||
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
if (!storeRef.current) {
|
||||
const totalBookingPrice = rooms.reduce((acc, room) => {
|
||||
const reservationTotalPrice = room?.totalPrice || 0
|
||||
@@ -105,6 +106,7 @@ export function BookingConfirmationProvider({
|
||||
}
|
||||
|
||||
return (
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
<BookingConfirmationContext.Provider value={storeRef.current}>
|
||||
{children}
|
||||
</BookingConfirmationContext.Provider>
|
||||
|
||||
Reference in New Issue
Block a user