tg-core-components 6.3.4-3.7 → 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.
|
@@ -255,10 +255,13 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
255
255
|
|
|
256
256
|
useEffect(function () {
|
|
257
257
|
if (newLimit) {
|
|
258
|
-
var _console;
|
|
258
|
+
var _console, _console2;
|
|
259
259
|
|
|
260
260
|
setValue(newLimit.Amount);
|
|
261
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);
|
|
262
265
|
}
|
|
263
266
|
}, [newLimit]);
|
|
264
267
|
|
|
@@ -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) {
|
|
@@ -286,10 +286,13 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
286
286
|
|
|
287
287
|
(0, _react.useEffect)(function () {
|
|
288
288
|
if (newLimit) {
|
|
289
|
-
var _console;
|
|
289
|
+
var _console, _console2;
|
|
290
290
|
|
|
291
291
|
setValue(newLimit.Amount);
|
|
292
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);
|
|
293
296
|
}
|
|
294
297
|
}, [newLimit]);
|
|
295
298
|
|
|
@@ -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) {
|