tg-core-components 6.3.4-3.14 → 6.3.4-3.15

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.
@@ -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) {
@@ -113,7 +113,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
113
113
  Product: product,
114
114
  Timespan: timespan,
115
115
  Amount: amount,
116
- MaxAmount: getValues(maxAmounts, currency, timespan),
116
+ MaxAmount: _extends({}, getValues(maxAmounts, currency, timespan)),
117
117
  Status: 'NewLimit'
118
118
  };
119
119
  var limits = localLimits.filter(function (l) {
@@ -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) },
@@ -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) {
@@ -156,7 +156,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
156
156
  Product: product,
157
157
  Timespan: timespan,
158
158
  Amount: amount,
159
- MaxAmount: (0, _helpers.getValues)(maxAmounts, currency, timespan),
159
+ MaxAmount: _extends({}, (0, _helpers.getValues)(maxAmounts, currency, timespan)),
160
160
  Status: 'NewLimit'
161
161
  };
162
162
  var limits = localLimits.filter(function (l) {
@@ -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) },
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.15",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",