ordering-ui-react-native 0.18.24 → 0.18.26

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.18.24",
3
+ "version": "0.18.26",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -191,7 +191,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
191
191
  setCanOpenUpselling(false)
192
192
  const cartsAvailable: any = Object.values(orderState?.carts)
193
193
  ?.filter((_cart: any) => _cart?.valid && _cart?.status !== 2 && _cart?.products?.length)
194
- ?.filter((_c: any) => !isProductCartParam ? _c.uuid !== cart.uuid : _c)
194
+ ?.filter((_c: any) => !isProductCartParam ? _c.uuid !== cart?.uuid : _c)
195
195
  if (cartsAvailable.length === 1 || !isCheckoutMultiBusinessEnabled) {
196
196
  const cart = isCheckoutMultiBusinessEnabled ? cartsAvailable[0] : currentCart
197
197
 
@@ -425,7 +425,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
425
425
  <BackgroundGray isIos={Platform.OS === 'ios'} />
426
426
  )}
427
427
  <IOScrollView
428
- stickyHeaderIndices={[business?.professionals?.length > 0 ? 3 : 2]}
428
+ stickyHeaderIndices={[business?.professionals?.length > 0 ? 4 : 3]}
429
429
  style={{
430
430
  ...styles.mainContainer,
431
431
  marginBottom: currentCart?.products?.length > 0 && categoryState.products.length !== 0 ?
@@ -116,7 +116,7 @@ const CartUI = (props: any) => {
116
116
 
117
117
  const cartsAvailable: any = Object.values(orderState?.carts)
118
118
  ?.filter((_cart: any) => _cart?.valid && _cart?.status !== 2 && _cart?.products?.length)
119
- ?.filter((_c: any) => !isProductCartParam ? _c.uuid !== cart.uuid : _c)
119
+ ?.filter((_c: any) => !isProductCartParam ? _c.uuid !== individualCart?.uuid : _c)
120
120
  if (cartsAvailable.length === 1 || !isMultiCheckout) {
121
121
  const cart = isMultiCheckout ? cartsAvailable[0] : individualCart
122
122
  onNavigationRedirect('CheckoutNavigator', {