ublo-lib 1.25.22 → 1.25.23
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.
|
@@ -18,8 +18,7 @@ export default function useTunnelOffers(zone, path, cart) {
|
|
|
18
18
|
const items = Utils.formatCartContent(cart);
|
|
19
19
|
const merchants = Utils.getMerchantsFromCart(cart);
|
|
20
20
|
const stay = Utils.getStayFromCart(cart);
|
|
21
|
-
const skiPassDurations = await Utils.getSkiPassDurationFromCart(cart);
|
|
22
|
-
const durationTags = await Utils.getDurationTagsFromCart(cart);
|
|
21
|
+
const [skiPassDurations, durationTags] = await Promise.all([Utils.getSkiPassDurationFromCart(cart), Utils.getDurationTagsFromCart(cart)]);
|
|
23
22
|
const content = {
|
|
24
23
|
items,
|
|
25
24
|
merchants,
|
|
@@ -35,11 +35,13 @@ export default function WeatherData({
|
|
|
35
35
|
})
|
|
36
36
|
}), _jsxs("div", {
|
|
37
37
|
className: css.weatherInfoTemperatures,
|
|
38
|
-
children: [_jsxs(
|
|
39
|
-
children: [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
children: [temperature.value !== undefined && temperature.unit !== undefined && _jsxs(_Fragment, {
|
|
39
|
+
children: [_jsxs("span", {
|
|
40
|
+
children: [temperature.value, _jsx(T, {
|
|
41
|
+
id: temperature.unit
|
|
42
|
+
})]
|
|
43
|
+
}), "|"]
|
|
44
|
+
}), windchill.value !== undefined && windchill.unit !== undefined && _jsxs("span", {
|
|
43
45
|
children: [windchill.value, _jsx(T, {
|
|
44
46
|
id: windchill.unit
|
|
45
47
|
}), _jsx("em", {
|