tg-core-components 6.3.4-3.13 → 6.3.4-3.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.
@@ -12,7 +12,7 @@ export var getValues = function getValues(values, currency, timespan) {
12
12
  return (Array.isArray(values) ? values : []).filter(function (v) {
13
13
  return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' && v.timespan === timespan || typeof v === 'number';
14
14
  }).map(function (v) {
15
- return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' ? v.amount : v;
15
+ return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' ? v.amount ? v.amount : v.maxAmount : v;
16
16
  });
17
17
  };
18
18
 
@@ -113,9 +113,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
113
113
  Product: product,
114
114
  Timespan: timespan,
115
115
  Amount: amount,
116
- MaxAmount: function MaxAmount() {
117
- return getValues(maxAmounts, currency, timespan);
118
- },
116
+ MaxAmount: getValues(maxAmounts, currency, timespan),
119
117
  Status: 'NewLimit'
120
118
  };
121
119
  var limits = localLimits.filter(function (l) {
@@ -23,7 +23,7 @@ var getValues = exports.getValues = function getValues(values, currency, timespa
23
23
  return (Array.isArray(values) ? values : []).filter(function (v) {
24
24
  return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' && v.timespan === timespan || typeof v === 'number';
25
25
  }).map(function (v) {
26
- return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' ? v.amount : v;
26
+ return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' ? v.amount ? v.amount : v.maxAmount : v;
27
27
  });
28
28
  };
29
29
 
@@ -156,9 +156,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
156
156
  Product: product,
157
157
  Timespan: timespan,
158
158
  Amount: amount,
159
- MaxAmount: function MaxAmount() {
160
- return (0, _helpers.getValues)(maxAmounts, currency, timespan);
161
- },
159
+ MaxAmount: (0, _helpers.getValues)(maxAmounts, currency, timespan),
162
160
  Status: 'NewLimit'
163
161
  };
164
162
  var limits = localLimits.filter(function (l) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.3.4-3.13",
3
+ "version": "6.3.4-3.14",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",