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:
@@ -66,6 +66,7 @@ export default function EnterDetailsProvider({
|
||||
const [hasInitializedStore, setHasInitializedStore] = useState(false)
|
||||
const storeRef = useRef<EnterDetailsStore>(undefined)
|
||||
const pointsCurrency = useGetPointsCurrency()
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
if (!storeRef.current) {
|
||||
const initialData: InitialState = {
|
||||
booking,
|
||||
@@ -242,6 +243,7 @@ export default function EnterDetailsProvider({
|
||||
}, [booking, rooms, user])
|
||||
|
||||
return (
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
<EnterDetailsContext.Provider value={storeRef.current}>
|
||||
{hasInitializedStore ? children : <LoadingSpinner fullPage />}
|
||||
</EnterDetailsContext.Provider>
|
||||
|
||||
@@ -427,6 +427,7 @@ export function SelectRateProvider({
|
||||
return
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
updatedRoom.packages = packages
|
||||
updateBooking(selectRateBooking)
|
||||
setActiveRoomIndex(roomIndex)
|
||||
@@ -448,6 +449,7 @@ export function SelectRateProvider({
|
||||
return
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
updatedRoom.rateCode = rateCode
|
||||
updatedRoom.roomTypeCode = roomTypeCode
|
||||
updatedRoom.counterRateCode = counterRateCode || null
|
||||
|
||||
Reference in New Issue
Block a user