Skip to content

Commit

Permalink
AUT-18410 default method when only 1 exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sephina committed Feb 26, 2024
1 parent 69130ef commit 1712e47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const RideButtons = ({
useEffect(() => {
loadOfflinePaymentText();
}, []);
const ridePaymentMethodId = ride?.paymentMethodId || '';
const ridePaymentMethodId = ride?.paymentMethodId || chosenService?.allowedPaymentMethods?.[0] || '';
const selectedPaymentMethod:
PaymentMethodInterface | undefined = paymentMethodIdToDataMap[ridePaymentMethodId]
|| paymentMethods.find(pm => pm.id === ridePaymentMethodId);
Expand Down

0 comments on commit 1712e47

Please sign in to comment.