@escapenavigator/hooks 1.10.166 → 1.10.168
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.
|
@@ -126,8 +126,10 @@ const PlayersAndVariationPicker = ({ slot, currentTariffId, currentDuration, loa
|
|
|
126
126
|
setChildren(value);
|
|
127
127
|
onChange === null || onChange === void 0 ? void 0 : onChange('children', value);
|
|
128
128
|
};
|
|
129
|
+
// Цена 0 за число игроков = «это кол-во недоступно для выбора». Такие
|
|
130
|
+
// ключи не рендерим кнопками и не учитываем в availablePlayerKeys/clamp.
|
|
129
131
|
const playersOptions = (0, react_1.useMemo)(() => Object.entries(tariff)
|
|
130
|
-
.filter(([key]) => key !== 'children' && !Number.isNaN(+key))
|
|
132
|
+
.filter(([key, price]) => key !== 'children' && !Number.isNaN(+key) && +price > 0)
|
|
131
133
|
.map(([key, price]) => ({
|
|
132
134
|
key: +key,
|
|
133
135
|
price,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/hooks",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.168",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/services": "^1.10.
|
|
18
|
-
"@escapenavigator/types": "^1.10.
|
|
19
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/services": "^1.10.176",
|
|
18
|
+
"@escapenavigator/types": "^1.10.162",
|
|
19
|
+
"@escapenavigator/utils": "^1.10.169",
|
|
20
20
|
"libphonenumber-js": "^1.12.24",
|
|
21
21
|
"react": "19.2.6",
|
|
22
22
|
"react-phone-input-2": "^2.15.1"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"ts-jest": "^29.1.1",
|
|
33
33
|
"typescript": "^5.6"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ee9112d85c9f99ce5f1bf2c4000e26112a2571ae"
|
|
36
36
|
}
|