@treely/strapi-slices 5.5.1 → 5.5.2
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/dist/strapi-slices.cjs.development.js +2 -4
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +2 -4
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +3 -5
|
@@ -4281,11 +4281,9 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4281
4281
|
type: 'number',
|
|
4282
4282
|
value: field.value,
|
|
4283
4283
|
onChange: function onChange(e) {
|
|
4284
|
-
// valueAsNumber might be NaN
|
|
4285
|
-
var value = e.target.valueAsNumber || 0;
|
|
4286
4284
|
setValues({
|
|
4287
|
-
contributionValueCurrency:
|
|
4288
|
-
contributionValueKgs:
|
|
4285
|
+
contributionValueCurrency: e.target.valueAsNumber,
|
|
4286
|
+
contributionValueKgs: e.target.valueAsNumber / pricePerKg / 1000
|
|
4289
4287
|
});
|
|
4290
4288
|
}
|
|
4291
4289
|
},
|