Skip to content

Commit

Permalink
fix AUT-18227
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerGery committed Jan 9, 2024
1 parent 446eede commit f7caae6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const RideButtons = ({
loadFutureBookingDays,
futureBookingDays,
businessAccountId,
serviceEstimations,
} = useContext(RidePageContext);


Expand All @@ -86,7 +87,8 @@ const RideButtons = ({
const [tempSelectedDate, setTempSelectedDate] = useState(firstDate());

const paymentMethodNotAllowedOnService = chosenService && ride?.paymentMethodId
&& !chosenService.allowedPaymentMethods.includes(getPaymentMethod(ride.paymentMethodId));
&& !chosenService.allowedPaymentMethods.includes(getPaymentMethod(ride.paymentMethodId))
&& serviceEstimations;

const checkFutureRidesSetting = async () => {
const futureRidesEnabled = await getSettingByKey(
Expand Down

0 comments on commit f7caae6

Please sign in to comment.