ordering-ui-react-native 0.18.25 → 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
|
@@ -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
|
|
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
|
|
|
@@ -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 !==
|
|
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', {
|