ordering-ui-react-native 0.16.89-release → 0.16.90-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
|
@@ -190,7 +190,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
|
|
|
190
190
|
setCanOpenUpselling(false)
|
|
191
191
|
const cartsAvailable: any = Object.values(orderState?.carts)
|
|
192
192
|
?.filter((_cart: any) => _cart?.valid && _cart?.status !== 2 && _cart?.products?.length)
|
|
193
|
-
?.filter((_c: any) => !isProductCartParam ? _c.uuid !== cart
|
|
193
|
+
?.filter((_c: any) => !isProductCartParam ? _c.uuid !== cart?.uuid : _c)
|
|
194
194
|
if (cartsAvailable.length === 1 || !isCheckoutMultiBusinessEnabled) {
|
|
195
195
|
const cart = isCheckoutMultiBusinessEnabled ? cartsAvailable[0] : currentCart
|
|
196
196
|
|
|
@@ -114,7 +114,7 @@ const CartUI = (props: any) => {
|
|
|
114
114
|
|
|
115
115
|
const cartsAvailable: any = Object.values(orderState?.carts)
|
|
116
116
|
?.filter((_cart: any) => _cart?.valid && _cart?.status !== 2 && _cart?.products?.length)
|
|
117
|
-
?.filter((_c: any) => !isProductCartParam ? _c.uuid !==
|
|
117
|
+
?.filter((_c: any) => !isProductCartParam ? _c.uuid !== individualCart?.uuid : _c)
|
|
118
118
|
if (cartsAvailable.length === 1 || !isMultiCheckout) {
|
|
119
119
|
const cart = isMultiCheckout ? cartsAvailable[0] : individualCart
|
|
120
120
|
onNavigationRedirect('CheckoutNavigator', {
|