ordering-ui-react-native 0.21.38 → 0.21.39
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
CHANGED
|
@@ -192,7 +192,11 @@ const CheckoutUI = (props: any) => {
|
|
|
192
192
|
}, cart?.subtotal)
|
|
193
193
|
|
|
194
194
|
const validateCommentsCartField = validationFields?.fields?.checkout?.comments?.enabled && validationFields?.fields?.checkout?.comments?.required && (cart?.comment === null || cart?.comment?.trim().length === 0)
|
|
195
|
-
const validateZipcodeCard = validationFields?.fields?.card?.zipcode?.enabled &&
|
|
195
|
+
const validateZipcodeCard = validationFields?.fields?.card?.zipcode?.enabled &&
|
|
196
|
+
validationFields?.fields?.card?.zipcode?.required &&
|
|
197
|
+
paymethodSelected?.data?.card &&
|
|
198
|
+
!paymethodSelected?.data?.card?.zipcode &&
|
|
199
|
+
paymethodSelected?.gateway === 'stripe'
|
|
196
200
|
|
|
197
201
|
const isDisabledButtonPlace = loading || !cart?.valid || (!paymethodSelected && cart?.balance > 0) ||
|
|
198
202
|
placing || errorCash || subtotalWithTaxes < cart?.minimum ||
|