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:
@@ -17,6 +17,7 @@ export function useAvailablePaymentOptions(
|
||||
|
||||
useEffect(() => {
|
||||
if (window.ApplePaySession) {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setAvailablePaymentOptions(otherPaymentOptions)
|
||||
}
|
||||
}, [otherPaymentOptions, setAvailablePaymentOptions])
|
||||
|
||||
@@ -51,6 +51,7 @@ export function useBookingWidgetState() {
|
||||
storedTo.isAfter(storedFrom)
|
||||
|
||||
if (isDateParamValid && stored.rooms?.length) {
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setBookingState({
|
||||
fromDate: storedFrom.format("YYYY-MM-DD"),
|
||||
toDate: storedTo.format("YYYY-MM-DD"),
|
||||
|
||||
@@ -57,6 +57,7 @@ export function useHandleBookingStatus({
|
||||
|
||||
return {
|
||||
...query,
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
isTimeout: retries.current >= maxRetries,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user