tg-core-components 6.3.4-3.8 → 6.3.4-3.9

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.
@@ -16,6 +16,7 @@ import messages from './messages';
16
16
  import Timespan from './Timespan';
17
17
  import getByPath from 'lodash/get';
18
18
  import marked from 'marked';
19
+ import { getValues } from './helpers';
19
20
 
20
21
  var ResponsibleGaming = function ResponsibleGaming(_ref) {
21
22
  var limits = _ref.limits,
@@ -112,7 +113,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
112
113
  Product: product,
113
114
  Timespan: timespan,
114
115
  Amount: amount,
115
- MaxAmount: maxAmounts,
116
+ MaxAmount: getValues(maxAmounts, currency, timespan),
116
117
  Status: 'NewLimit'
117
118
  };
118
119
  var limits = localLimits.filter(function (l) {
@@ -55,6 +55,8 @@ var _marked = require('marked');
55
55
 
56
56
  var _marked2 = _interopRequireDefault(_marked);
57
57
 
58
+ var _helpers = require('./helpers');
59
+
58
60
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
59
61
 
60
62
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
@@ -154,7 +156,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
154
156
  Product: product,
155
157
  Timespan: timespan,
156
158
  Amount: amount,
157
- MaxAmount: maxAmounts,
159
+ MaxAmount: (0, _helpers.getValues)(maxAmounts, currency, timespan),
158
160
  Status: 'NewLimit'
159
161
  };
160
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.8",
3
+ "version": "6.3.4-3.9",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",