ublo-lib 1.47.12 → 1.47.14

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.
@@ -80,7 +80,7 @@ export default function SkiRental({ msemServicesUrl, preset, setPreset, setShowP
80
80
  const rentFrom = data.rentFrom || undefined;
81
81
  const activity = data.activity || undefined;
82
82
  const level = data.level || undefined;
83
- const productId = data.productId || undefined;
83
+ const productId = data.productId ? Number(data.productId) : undefined;
84
84
  newPreset = {
85
85
  ...current,
86
86
  presets: {
@@ -116,10 +116,10 @@ function getDefaultData(preset, mode) {
116
116
  return merchants || DEFAULT_LISTING_DATA.merchants;
117
117
  }
118
118
  else {
119
- if (!preset?.presets && !preset?.options)
119
+ if (!preset?.presets)
120
120
  return DEFAULT_DATA;
121
121
  const { catalog } = preset.options;
122
- const { duration, rentFrom, activity, level, productId } = preset.presets;
122
+ const { duration, rentFrom, activity, level, productId } = preset.presets || {};
123
123
  return {
124
124
  catalog: catalog || DEFAULT_DATA.catalog,
125
125
  duration: duration || DEFAULT_DATA.duration,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.12",
3
+ "version": "1.47.14",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",