ordering-ui-react-native 0.17.78-release → 0.17.79-release
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +1 -1
- package/themes/original/src/components/LastOrder/index.tsx +2 -1
- package/themes/original/src/components/LastOrders/index.tsx +2 -1
- package/themes/original/src/components/OrderProgress/index.tsx +2 -1
- package/themes/original/src/components/PaymentOptions/index.tsx +3 -1
package/package.json
CHANGED
|
@@ -117,9 +117,11 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
117
117
|
// { name: t('SELECT_A_PAYMENT_METHOD', 'Select a payment method'), value: '-1' },
|
|
118
118
|
// ]
|
|
119
119
|
|
|
120
|
+
const paymethodsFieldRequired = ['paypal', 'apple_pay', 'global_apple_pay']
|
|
121
|
+
|
|
120
122
|
const handlePaymentMethodClick = (paymethod: any) => {
|
|
121
123
|
if (cart?.balance > 0) {
|
|
122
|
-
if (paymethod?.gateway
|
|
124
|
+
if (paymethodsFieldRequired.includes(paymethod?.gateway) && requiredFields.length > 0) {
|
|
123
125
|
openUserModal && openUserModal(true)
|
|
124
126
|
setPaymethodClicked({
|
|
125
127
|
confirmed: false,
|