Skip to content

Commit

Permalink
always allow offline for BA
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerGery committed Jan 15, 2024
1 parent 5895bbf commit b50f5f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const RideButtons = ({
const [passengersCounterError, setPassengersCounterError] = useState(false);
const firstDate = () => moment(ride?.scheduledTo || undefined).add(ride?.scheduledTo ? 0 : (minMinutesBeforeFutureRide || 0) + 1, 'minutes').toDate();
const [tempSelectedDate, setTempSelectedDate] = useState(firstDate());

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

Expand Down

0 comments on commit b50f5f2

Please sign in to comment.