tg-core-components 6.3.4-2.4 → 6.3.4-2.6
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.
|
@@ -348,6 +348,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
348
348
|
inputMode === 'input' && React.createElement(
|
|
349
349
|
Fragment,
|
|
350
350
|
null,
|
|
351
|
+
console.log(currentLimit),
|
|
351
352
|
React.createElement(Input, {
|
|
352
353
|
type: 'number',
|
|
353
354
|
pattern: '\\d*',
|
|
@@ -358,7 +359,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
358
359
|
},
|
|
359
360
|
autoFocus: !isIphone,
|
|
360
361
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
361
|
-
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') :
|
|
362
|
+
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') : getByPath(currentLimit, 'MaxAmount')
|
|
362
363
|
}),
|
|
363
364
|
React.createElement(
|
|
364
365
|
Button,
|
|
@@ -379,6 +379,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
379
379
|
inputMode === 'input' && _react2.default.createElement(
|
|
380
380
|
_react.Fragment,
|
|
381
381
|
null,
|
|
382
|
+
console.log(currentLimit),
|
|
382
383
|
_react2.default.createElement(_Input2.default, {
|
|
383
384
|
type: 'number',
|
|
384
385
|
pattern: '\\d*',
|
|
@@ -389,7 +390,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
389
390
|
},
|
|
390
391
|
autoFocus: !isIphone,
|
|
391
392
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
392
|
-
max: validationState['limit-increase-blocked'] ? (0, _get2.default)(currentLimit, 'Amount') :
|
|
393
|
+
max: validationState['limit-increase-blocked'] ? (0, _get2.default)(currentLimit, 'Amount') : (0, _get2.default)(currentLimit, 'MaxAmount')
|
|
393
394
|
}),
|
|
394
395
|
_react2.default.createElement(
|
|
395
396
|
_Button2.default,
|