tg-core-components 6.3.4-3.14 → 6.3.4-3.16

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.
@@ -242,7 +242,6 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
242
242
  hideRemainingLimit = _ref10.hideRemainingLimit,
243
243
  showCurrentValue = _ref10.showCurrentValue,
244
244
  hideOther = _ref10.hideOther,
245
- maxAmounts = _ref10.maxAmounts,
246
245
  values = _ref10.values,
247
246
  messages = _ref10.messages,
248
247
  isTime = _ref10.isTime,
@@ -255,13 +254,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
255
254
 
256
255
  useEffect(function () {
257
256
  if (newLimit) {
258
- var _console, _console2;
259
-
260
257
  setValue(newLimit.Amount);
261
- (_console = console).log.apply(_console, _toConsumableArray(getValues(maxAmounts, currency, timespan)));
262
- (_console2 = console).log.apply(_console2, _toConsumableArray(getValues(newLimit.MaxAmount, currency, timespan)));
263
- console.log(maxAmounts);
264
- console.log(values);
265
258
  }
266
259
  }, [newLimit]);
267
260
 
@@ -6,9 +6,7 @@ import getByPath from 'lodash/get';
6
6
  * Helper function to get values using currency and timespan
7
7
  */
8
8
  export var getValues = function getValues(values, currency, timespan) {
9
- console.log('values', values, currency, timespan);
10
9
  values = getByPath(values, '[' + (currency || '').toUpperCase() + ']') || values;
11
- console.log('timespan: ', timespan, values);
12
10
  return (Array.isArray(values) ? values : []).filter(function (v) {
13
11
  return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' && v.timespan === timespan || typeof v === 'number';
14
12
  }).map(function (v) {
@@ -125,7 +125,6 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
125
125
  };
126
126
 
127
127
  console.log(normalizedLimits);
128
-
129
128
  return React.createElement(
130
129
  'div',
131
130
  { className: cn('ResponsibleGamingWidget', className) },
@@ -196,8 +195,6 @@ var LimitContent = function LimitContent(_ref3) {
196
195
 
197
196
  var alerts = getAlerts(Object.keys(timespans));
198
197
 
199
- console.log(Object.values);
200
-
201
198
  var onSubmit = function onSubmit(e) {
202
199
  e.preventDefault();
203
200
  var limits = Object.values(timespans).filter(function (t) {
@@ -273,7 +273,6 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
273
273
  hideRemainingLimit = _ref10.hideRemainingLimit,
274
274
  showCurrentValue = _ref10.showCurrentValue,
275
275
  hideOther = _ref10.hideOther,
276
- maxAmounts = _ref10.maxAmounts,
277
276
  values = _ref10.values,
278
277
  messages = _ref10.messages,
279
278
  isTime = _ref10.isTime,
@@ -286,13 +285,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
286
285
 
287
286
  (0, _react.useEffect)(function () {
288
287
  if (newLimit) {
289
- var _console, _console2;
290
-
291
288
  setValue(newLimit.Amount);
292
- (_console = console).log.apply(_console, _toConsumableArray((0, _helpers.getValues)(maxAmounts, currency, timespan)));
293
- (_console2 = console).log.apply(_console2, _toConsumableArray((0, _helpers.getValues)(newLimit.MaxAmount, currency, timespan)));
294
- console.log(maxAmounts);
295
- console.log(values);
296
289
  }
297
290
  }, [newLimit]);
298
291
 
@@ -17,9 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
  * Helper function to get values using currency and timespan
18
18
  */
19
19
  var getValues = exports.getValues = function getValues(values, currency, timespan) {
20
- console.log('values', values, currency, timespan);
21
20
  values = (0, _get2.default)(values, '[' + (currency || '').toUpperCase() + ']') || values;
22
- console.log('timespan: ', timespan, values);
23
21
  return (Array.isArray(values) ? values : []).filter(function (v) {
24
22
  return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' && v.timespan === timespan || typeof v === 'number';
25
23
  }).map(function (v) {
@@ -168,7 +168,6 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
168
168
  };
169
169
 
170
170
  console.log(normalizedLimits);
171
-
172
171
  return _react2.default.createElement(
173
172
  'div',
174
173
  { className: (0, _classnames2.default)('ResponsibleGamingWidget', className) },
@@ -239,8 +238,6 @@ var LimitContent = function LimitContent(_ref3) {
239
238
 
240
239
  var alerts = getAlerts(Object.keys(timespans));
241
240
 
242
- console.log(Object.values);
243
-
244
241
  var onSubmit = function onSubmit(e) {
245
242
  e.preventDefault();
246
243
  var limits = Object.values(timespans).filter(function (t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.3.4-3.14",
3
+ "version": "6.3.4-3.16",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",