ordering-ui-react-native 0.16.60-release → 0.16.61-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.60-release",
3
+ "version": "0.16.61-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -80,8 +80,7 @@ const MultiCheckoutUI = (props: any) => {
80
80
 
81
81
  const configTypes = configs?.order_types_allowed?.value.split('|').map((value: any) => Number(value)) || []
82
82
  const isPreOrder = configs?.preorder_status_enabled?.value === '1'
83
- const maximumCarts = 5
84
- const isDisablePlaceOrderButton = !(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) || openCarts.length > maximumCarts || (paymethodSelected?.paymethod?.gateway === 'stripe' && !paymethodSelected?.paymethod_data)
83
+ const isDisablePlaceOrderButton = !(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) || (paymethodSelected?.paymethod?.gateway === 'stripe' && !paymethodSelected?.paymethod_data)
85
84
  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) || []
86
85
 
87
86
  const [isUserDetailsEdit, setIsUserDetailsEdit] = useState(false);
@@ -297,11 +296,6 @@ const MultiCheckoutUI = (props: any) => {
297
296
  </OText>
298
297
  </ChCartsTotal>
299
298
  )}
300
- {openCarts.length > maximumCarts && (
301
- <OText size={14} color={theme.colors.danger5} style={{ marginVertical: 20 }}>
302
- {t('WARNING_MAXIMUM_CARTS', 'You can only pay for a maximum of 5 carts, please discard one or more to continue.')}
303
- </OText>
304
- )}
305
299
  </ChCarts>
306
300
  </ChSection>
307
301
  </ChContainer>