tg-core-components 6.1.10 → 6.1.12-ub-51.0
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.
- package/es/widgets/Cashier/Payment/PaymentAccountForms/index.js +1 -1
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +4 -4
- package/es/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +1 -2
- package/lib/widgets/Cashier/Payment/PaymentAccountForms/index.js +1 -1
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +4 -4
- package/lib/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +1 -2
- package/package.json +2 -2
|
@@ -185,7 +185,7 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
185
185
|
React.createElement(Input, {
|
|
186
186
|
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : undefined,
|
|
187
187
|
name: 'accountNumber',
|
|
188
|
-
title: translate({ id: 'cashier.details.
|
|
188
|
+
title: translate({ id: 'cashier.details.iban' }, intl),
|
|
189
189
|
disabled: account.accountId
|
|
190
190
|
})
|
|
191
191
|
);
|
|
@@ -542,10 +542,10 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
542
542
|
{ className: 'payment-account-info' },
|
|
543
543
|
React.createElement(Input, {
|
|
544
544
|
required: true,
|
|
545
|
-
name: '
|
|
546
|
-
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['
|
|
547
|
-
onChange: function onChange(e,
|
|
548
|
-
return change('
|
|
545
|
+
name: 'accountNumber',
|
|
546
|
+
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['accountNumber'],
|
|
547
|
+
onChange: function onChange(e, accountNumber) {
|
|
548
|
+
return change('accountNumber', accountNumber);
|
|
549
549
|
},
|
|
550
550
|
label: translate({ id: 'cashier.details.iban' }, intl),
|
|
551
551
|
disabled: account.accountId
|
|
@@ -141,8 +141,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
141
141
|
if (amount === undefined) {
|
|
142
142
|
return errors;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
if (Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
144
|
+
if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
146
145
|
errors.amount.push(React.createElement(Translate, {
|
|
147
146
|
id: 'error.cashier.amount-below-method-limit',
|
|
148
147
|
defaultMessage: 'Amount is too low.'
|
|
@@ -220,7 +220,7 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
220
220
|
_react2.default.createElement(_TextInput2.default, {
|
|
221
221
|
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : undefined,
|
|
222
222
|
name: 'accountNumber',
|
|
223
|
-
title: (0, _translate2.default)({ id: 'cashier.details.
|
|
223
|
+
title: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
|
|
224
224
|
disabled: account.accountId
|
|
225
225
|
})
|
|
226
226
|
);
|
|
@@ -585,10 +585,10 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
585
585
|
{ className: 'payment-account-info' },
|
|
586
586
|
_react2.default.createElement(_Input2.default, {
|
|
587
587
|
required: true,
|
|
588
|
-
name: '
|
|
589
|
-
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['
|
|
590
|
-
onChange: function onChange(e,
|
|
591
|
-
return change('
|
|
588
|
+
name: 'accountNumber',
|
|
589
|
+
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['accountNumber'],
|
|
590
|
+
onChange: function onChange(e, accountNumber) {
|
|
591
|
+
return change('accountNumber', accountNumber);
|
|
592
592
|
},
|
|
593
593
|
label: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
|
|
594
594
|
disabled: account.accountId
|
|
@@ -198,8 +198,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
198
198
|
if (amount === undefined) {
|
|
199
199
|
return errors;
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
if (Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
201
|
+
if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
203
202
|
errors.amount.push(_react2.default.createElement(_Translate2.default, {
|
|
204
203
|
id: 'error.cashier.amount-below-method-limit',
|
|
205
204
|
defaultMessage: 'Amount is too low.'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.12-ub-51.0",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "2cb2b91b483bce80d72329d599ed97de84601d3a"
|
|
80
80
|
}
|