@betterstore/react 0.3.19 → 0.3.20
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -94,10 +94,7 @@ function createJSONStorage(getStorage, options) {
|
|
|
94
94
|
}
|
|
95
95
|
return parse(str);
|
|
96
96
|
},
|
|
97
|
-
setItem: (name, newValue) => storage.setItem(
|
|
98
|
-
name,
|
|
99
|
-
JSON.stringify(newValue, void 0 )
|
|
100
|
-
),
|
|
97
|
+
setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, void 0 )),
|
|
101
98
|
removeItem: (name) => storage.removeItem(name)
|
|
102
99
|
};
|
|
103
100
|
return persistStorage;
|
|
@@ -35057,7 +35054,7 @@ function DiscountCode({ applyDiscountCode, revalidateDiscounts, }) {
|
|
|
35057
35054
|
setIsLoading(true);
|
|
35058
35055
|
try {
|
|
35059
35056
|
yield applyDiscountCode(discountCode);
|
|
35060
|
-
|
|
35057
|
+
// await revalidateDiscounts();
|
|
35061
35058
|
setDiscountCode("");
|
|
35062
35059
|
toast.success(t("CheckoutEmbed.Summary.discountCodeSuccess"));
|
|
35063
35060
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -71,10 +71,7 @@ function createJSONStorage(getStorage, options) {
|
|
|
71
71
|
}
|
|
72
72
|
return parse(str);
|
|
73
73
|
},
|
|
74
|
-
setItem: (name, newValue) => storage.setItem(
|
|
75
|
-
name,
|
|
76
|
-
JSON.stringify(newValue, void 0 )
|
|
77
|
-
),
|
|
74
|
+
setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, void 0 )),
|
|
78
75
|
removeItem: (name) => storage.removeItem(name)
|
|
79
76
|
};
|
|
80
77
|
return persistStorage;
|
|
@@ -35034,7 +35031,7 @@ function DiscountCode({ applyDiscountCode, revalidateDiscounts, }) {
|
|
|
35034
35031
|
setIsLoading(true);
|
|
35035
35032
|
try {
|
|
35036
35033
|
yield applyDiscountCode(discountCode);
|
|
35037
|
-
|
|
35034
|
+
// await revalidateDiscounts();
|
|
35038
35035
|
setDiscountCode("");
|
|
35039
35036
|
toast.success(t("CheckoutEmbed.Summary.discountCodeSuccess"));
|
|
35040
35037
|
}
|