tg-core-components 6.3.4-3.15 → 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
|
|
|
@@ -113,7 +113,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
|
|
|
113
113
|
Product: product,
|
|
114
114
|
Timespan: timespan,
|
|
115
115
|
Amount: amount,
|
|
116
|
-
MaxAmount:
|
|
116
|
+
MaxAmount: getValues(maxAmounts, currency, timespan),
|
|
117
117
|
Status: 'NewLimit'
|
|
118
118
|
};
|
|
119
119
|
var limits = localLimits.filter(function (l) {
|
|
@@ -195,8 +195,6 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
195
195
|
|
|
196
196
|
var alerts = getAlerts(Object.keys(timespans));
|
|
197
197
|
|
|
198
|
-
console.log(Object.values);
|
|
199
|
-
|
|
200
198
|
var onSubmit = function onSubmit(e) {
|
|
201
199
|
e.preventDefault();
|
|
202
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
|
|
|
@@ -156,7 +156,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
|
|
|
156
156
|
Product: product,
|
|
157
157
|
Timespan: timespan,
|
|
158
158
|
Amount: amount,
|
|
159
|
-
MaxAmount:
|
|
159
|
+
MaxAmount: (0, _helpers.getValues)(maxAmounts, currency, timespan),
|
|
160
160
|
Status: 'NewLimit'
|
|
161
161
|
};
|
|
162
162
|
var limits = localLimits.filter(function (l) {
|
|
@@ -238,8 +238,6 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
238
238
|
|
|
239
239
|
var alerts = getAlerts(Object.keys(timespans));
|
|
240
240
|
|
|
241
|
-
console.log(Object.values);
|
|
242
|
-
|
|
243
241
|
var onSubmit = function onSubmit(e) {
|
|
244
242
|
e.preventDefault();
|
|
245
243
|
var limits = Object.values(timespans).filter(function (t) {
|