tg-core-components 6.1.12 → 6.1.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.
@@ -9,6 +9,7 @@ export default {
9
9
  AG: '🇦🇬',
10
10
  AU: '🇦🇺',
11
11
  AT: '🇦🇹',
12
+ AW: '🇦🇼',
12
13
  AZ: '🇦🇿',
13
14
  BI: '🇧🇮',
14
15
  BE: '🇧🇪',
@@ -24,6 +25,7 @@ export default {
24
25
  BO: '🇧🇴',
25
26
  BR: '🇧🇷',
26
27
  BB: '🇧🇧',
28
+ BM: '🇧🇲',
27
29
  BN: '🇧🇳',
28
30
  BT: '🇧🇹',
29
31
  BW: '🇧🇼',
@@ -33,6 +35,7 @@ export default {
33
35
  CL: '🇨🇱',
34
36
  CN: '🇨🇳',
35
37
  CI: '🇨🇮',
38
+ CK: '🇨🇰',
36
39
  CM: '🇨🇲',
37
40
  CD: '🇨🇩',
38
41
  CG: '🇨🇬',
@@ -167,6 +170,7 @@ export default {
167
170
  SZ: '🇸🇿',
168
171
  SC: '🇸🇨',
169
172
  SY: '🇸🇾',
173
+ TC: '🇹🇨',
170
174
  TD: '🇹🇩',
171
175
  TG: '🇹🇬',
172
176
  TH: '🇹🇭',
@@ -178,6 +182,7 @@ export default {
178
182
  TN: '🇹🇳',
179
183
  TR: '🇹🇷',
180
184
  TV: '🇹🇻',
185
+ TW: '🇹🇼',
181
186
  TZ: '🇹🇿',
182
187
  UG: '🇺🇬',
183
188
  UA: '🇺🇦',
@@ -251,7 +251,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
251
251
  setValue = _useState2[1];
252
252
 
253
253
  useEffect(function () {
254
- if (newLimit && newLimit.Amount) {
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')
@@ -14,6 +14,7 @@ exports.default = {
14
14
  AG: '🇦🇬',
15
15
  AU: '🇦🇺',
16
16
  AT: '🇦🇹',
17
+ AW: '🇦🇼',
17
18
  AZ: '🇦🇿',
18
19
  BI: '🇧🇮',
19
20
  BE: '🇧🇪',
@@ -29,6 +30,7 @@ exports.default = {
29
30
  BO: '🇧🇴',
30
31
  BR: '🇧🇷',
31
32
  BB: '🇧🇧',
33
+ BM: '🇧🇲',
32
34
  BN: '🇧🇳',
33
35
  BT: '🇧🇹',
34
36
  BW: '🇧🇼',
@@ -38,6 +40,7 @@ exports.default = {
38
40
  CL: '🇨🇱',
39
41
  CN: '🇨🇳',
40
42
  CI: '🇨🇮',
43
+ CK: '🇨🇰',
41
44
  CM: '🇨🇲',
42
45
  CD: '🇨🇩',
43
46
  CG: '🇨🇬',
@@ -172,6 +175,7 @@ exports.default = {
172
175
  SZ: '🇸🇿',
173
176
  SC: '🇸🇨',
174
177
  SY: '🇸🇾',
178
+ TC: '🇹🇨',
175
179
  TD: '🇹🇩',
176
180
  TG: '🇹🇬',
177
181
  TH: '🇹🇭',
@@ -183,6 +187,7 @@ exports.default = {
183
187
  TN: '🇹🇳',
184
188
  TR: '🇹🇷',
185
189
  TV: '🇹🇻',
190
+ TW: '🇹🇼',
186
191
  TZ: '🇹🇿',
187
192
  UG: '🇺🇬',
188
193
  UA: '🇺🇦',
@@ -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 && newLimit.Amount) {
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.12",
3
+ "version": "6.1.14",
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": "9dc5a4594d4fad293797cc00c154033d5784237c"
79
+ "gitHead": "558ef34be1b71b56cc94f1edd6c04816679178ce"
80
80
  }