@nuskin/ns-shop 7.7.0-pa-902.4 → 7.7.0-pa-902.5
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
|
@@ -439,11 +439,13 @@ const updateAnonymousPersistedCart = async (cartId, payload) => {
|
|
|
439
439
|
*/
|
|
440
440
|
const removePersistedCart = async (cartId) => {
|
|
441
441
|
const user = UserService.getUser();
|
|
442
|
+
const {country} = RunConfigService.getRunConfig();
|
|
443
|
+
|
|
442
444
|
try {
|
|
443
445
|
if (user && cartId) {
|
|
444
446
|
await axios({
|
|
445
447
|
method: 'DELETE',
|
|
446
|
-
url: getUrl('deleteCart', cartId, {accountId: user.id}),
|
|
448
|
+
url: getUrl('deleteCart', cartId, {accountId: user.id, country}),
|
|
447
449
|
headers: getHeaders(user.eid)
|
|
448
450
|
});
|
|
449
451
|
CartService.setCartProperties({id: '', version: -1});
|