tg-core-components 6.1.12 → 6.1.13-reset-limits.0
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.
|
@@ -251,7 +251,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
251
251
|
setValue = _useState2[1];
|
|
252
252
|
|
|
253
253
|
useEffect(function () {
|
|
254
|
-
if (newLimit
|
|
254
|
+
if (newLimit) {
|
|
255
255
|
setValue(newLimit.Amount);
|
|
256
256
|
}
|
|
257
257
|
}, [newLimit]);
|
|
@@ -282,7 +282,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
// If not blocked from removing limit or 'No limit' option is selected -> add 'No limit' option
|
|
285
|
-
if (!validationState['limit-remove-blocked'] || value === 0) {
|
|
285
|
+
if (!validationState['limit-remove-blocked'] || value === 0 || value === '') {
|
|
286
286
|
options.unshift({
|
|
287
287
|
value: 0,
|
|
288
288
|
label: messages.get('label.responsible-gaming.option.no-limit')
|
|
@@ -282,7 +282,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
282
282
|
setValue = _useState2[1];
|
|
283
283
|
|
|
284
284
|
(0, _react.useEffect)(function () {
|
|
285
|
-
if (newLimit
|
|
285
|
+
if (newLimit) {
|
|
286
286
|
setValue(newLimit.Amount);
|
|
287
287
|
}
|
|
288
288
|
}, [newLimit]);
|
|
@@ -313,7 +313,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
// If not blocked from removing limit or 'No limit' option is selected -> add 'No limit' option
|
|
316
|
-
if (!validationState['limit-remove-blocked'] || value === 0) {
|
|
316
|
+
if (!validationState['limit-remove-blocked'] || value === 0 || value === '') {
|
|
317
317
|
options.unshift({
|
|
318
318
|
value: 0,
|
|
319
319
|
label: messages.get('label.responsible-gaming.option.no-limit')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.13-reset-limits.0",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b0a0f9b54b8d5301db8f872ad5b7aa7efefb6cc2"
|
|
80
80
|
}
|