tg-core-components 6.1.10 → 6.1.12-remove-calling-code.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.
|
@@ -148,14 +148,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
148
148
|
id: 'title.mobile_number',
|
|
149
149
|
defaultMessage: 'Mobile number'
|
|
150
150
|
}, intl),
|
|
151
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
152
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
153
|
-
}).map(function (i) {
|
|
154
|
-
return {
|
|
155
|
-
value: '00' + i.callingCode,
|
|
156
|
-
label: '+' + i.callingCode + ' ' + (countryEmojiFlags[i.value] || '')
|
|
157
|
-
};
|
|
158
|
-
}) : [],
|
|
159
151
|
name: 'MobilePhoneNumber',
|
|
160
152
|
autoComplete: 'off',
|
|
161
153
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -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.'
|
|
@@ -189,14 +189,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
189
189
|
id: 'title.mobile_number',
|
|
190
190
|
defaultMessage: 'Mobile number'
|
|
191
191
|
}, intl),
|
|
192
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
193
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
194
|
-
}).map(function (i) {
|
|
195
|
-
return {
|
|
196
|
-
value: '00' + i.callingCode,
|
|
197
|
-
label: '+' + i.callingCode + ' ' + (_countryEmojiFlags2.default[i.value] || '')
|
|
198
|
-
};
|
|
199
|
-
}) : [],
|
|
200
192
|
name: 'MobilePhoneNumber',
|
|
201
193
|
autoComplete: 'off',
|
|
202
194
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -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-remove-calling-code.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": "2ddf77a2b7603a6b324f9b9aaaa52b37889316d4"
|
|
80
80
|
}
|