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
|
|
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
|
|
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,
|