tg-core-components 6.1.12-ub-51.0 → 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.
@@ -261,7 +261,7 @@ var Banklocal = function Banklocal(_ref6) {
261
261
  return change('accountNumber', accountNumber);
262
262
  },
263
263
  name: 'accountNumber',
264
- label: translate({ id: 'cashier.details.accountNumber' }, intl),
264
+ label: translate({ id: 'cashier.details.iban' }, intl),
265
265
  disabled: account.accountId
266
266
  })
267
267
  );
@@ -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')
@@ -304,7 +304,7 @@ var Banklocal = function Banklocal(_ref6) {
304
304
  return change('accountNumber', accountNumber);
305
305
  },
306
306
  name: 'accountNumber',
307
- label: (0, _translate2.default)({ id: 'cashier.details.accountNumber' }, intl),
307
+ label: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
308
308
  disabled: account.accountId
309
309
  })
310
310
  );
@@ -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-ub-51.0",
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": "2cb2b91b483bce80d72329d599ed97de84601d3a"
79
+ "gitHead": "b0a0f9b54b8d5301db8f872ad5b7aa7efefb6cc2"
80
80
  }