@riosst100/pwa-marketplace 2.5.0 → 2.5.1
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
|
@@ -10,8 +10,6 @@ export const createSellerCart = payload =>
|
|
|
10
10
|
const { cart } = getState();
|
|
11
11
|
|
|
12
12
|
// Request a new cart.
|
|
13
|
-
dispatch(actions.getSellerCart.request());
|
|
14
|
-
|
|
15
13
|
try {
|
|
16
14
|
// errors can come from graphql and are not thrown
|
|
17
15
|
const { data, errors } = await initCheckoutSplitCart({
|
|
@@ -42,12 +40,9 @@ export const createSellerCart = payload =>
|
|
|
42
40
|
// write to storage in the background
|
|
43
41
|
saveSellerCartId(data.initCheckoutSplitCart.quote_id);
|
|
44
42
|
}
|
|
45
|
-
|
|
46
|
-
dispatch(actions.getSellerCart.receive(receivePayload));
|
|
47
43
|
} catch (error) {
|
|
48
44
|
// If we are unable to create a cart, the cart can't function, so
|
|
49
45
|
// we forcibly throw so the upstream actions won't retry.
|
|
50
|
-
dispatch(actions.getSellerCart.receive(error));
|
|
51
46
|
throw new Error('Unable to create seller cart');
|
|
52
47
|
}
|
|
53
48
|
};
|