ordering-ui-react-native 0.21.93 → 0.21.94

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.21.93",
3
+ "version": "0.21.94",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -210,7 +210,7 @@ const CheckoutUI = (props: any) => {
210
210
  const isDisabledButtonPlace = loading || !cart?.valid || (!paymethodSelected && cart?.balance > 0) ||
211
211
  placing || errorCash || subtotalWithTaxes < cart?.minimum ||
212
212
  (cardsMethods.includes(paymethodSelected?.gateway) && cardList?.cards?.length === 0) ||
213
- (options.type === 1 &&
213
+ (options.type === 1 && !isGiftCardCart &&
214
214
  validationFields?.fields?.checkout?.driver_tip?.enabled &&
215
215
  validationFields?.fields?.checkout?.driver_tip?.required &&
216
216
  (Number(cart?.driver_tip) <= 0)) ||
@@ -958,7 +958,7 @@ const CheckoutUI = (props: any) => {
958
958
  {t('INVALID_CART_MOMENT', 'Selected schedule time is invalid, please select a schedule into the business schedule interval.')}
959
959
  </OText>
960
960
  )}
961
- {options.type === 1 &&
961
+ {options.type === 1 && !isGiftCardCart &&
962
962
  validationFields?.fields?.checkout?.driver_tip?.enabled &&
963
963
  validationFields?.fields?.checkout?.driver_tip?.required &&
964
964
  (Number(cart?.driver_tip) <= 0) && (