ordering-ui-react-native 0.17.87 → 0.17.88

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.17.87",
3
+ "version": "0.17.88",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -78,8 +78,7 @@ const MultiCheckoutUI = (props: any) => {
78
78
 
79
79
  const configTypes = configs?.order_types_allowed?.value.split('|').map((value: any) => Number(value)) || []
80
80
  const isPreOrder = configs?.preorder_status_enabled?.value === '1'
81
- const maximumCarts = 5
82
- const isDisablePlaceOrderButton = !(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) || openCarts.length > maximumCarts || (paymethodSelected?.paymethod?.gateway === 'stripe' && !paymethodSelected?.paymethod_data)
81
+ const isDisablePlaceOrderButton = !(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) || (paymethodSelected?.paymethod?.gateway === 'stripe' && !paymethodSelected?.paymethod_data)
83
82
  const walletCarts = (Object.values(carts)?.filter((cart: any) => cart?.products && cart?.products?.length && cart?.status !== 2 && cart?.valid_schedule && cart?.valid_products && cart?.valid_address && cart?.valid_maximum && cart?.valid_minimum && cart?.wallets) || null) || []
84
83
 
85
84
  const [isUserDetailsEdit, setIsUserDetailsEdit] = useState(false);
@@ -292,11 +291,6 @@ const MultiCheckoutUI = (props: any) => {
292
291
  </OText>
293
292
  </ChCartsTotal>
294
293
  )}
295
- {openCarts.length > maximumCarts && (
296
- <OText size={14} color={theme.colors.danger5} style={{ marginVertical: 20 }}>
297
- {t('WARNING_MAXIMUM_CARTS', 'You can only pay for a maximum of 5 carts, please discard one or more to continue.')}
298
- </OText>
299
- )}
300
294
  </ChCarts>
301
295
  </ChSection>
302
296
  </ChContainer>