tg-core-components 6.1.16-vega-integration.0 → 6.1.16-vega-integration.3

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.
@@ -59,7 +59,7 @@ var SelectedPaymentMethod = function (_Component) {
59
59
  id: 'noun.min_limit',
60
60
  values: {
61
61
  limit: React.createElement(Money, {
62
- value: selectedMethod.limit.min,
62
+ value: 1,
63
63
  maximumFractionDigits: 0,
64
64
  currency: currency
65
65
  })
@@ -70,7 +70,7 @@ var SelectedPaymentMethod = function (_Component) {
70
70
  id: 'noun.max_limit',
71
71
  values: {
72
72
  limit: React.createElement(Money, {
73
- value: selectedMethod.limit.max,
73
+ value: 500,
74
74
  maximumFractionDigits: 0,
75
75
  currency: currency
76
76
  })
@@ -108,8 +108,8 @@ var DepositWidget = function (_Component) {
108
108
  providerType: selectedMethod.providerType,
109
109
  lastDepositAmount: paymentStats.LastDepositAmount,
110
110
  remainingDepositLimit: remainingDepositLimit,
111
- methodMin: selectedMethod.limit.min,
112
- methodMax: selectedMethod.limit.max,
111
+ methodMin: 1,
112
+ methodMax: 500,
113
113
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
114
114
  cancelWithdrawalAmount: selectedMethod.amount,
115
115
  spainRemainingDepositAmount: _this.getSpainRemainingDepositAmount()
@@ -262,7 +262,7 @@ var DepositWidget = function (_Component) {
262
262
  return errors;
263
263
  }
264
264
 
265
- if (amount < parseFloat(selectedMethod.limit.min) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
265
+ if (amount < parseFloat(1) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
266
266
  errors.amount.push(React.createElement(Translate, {
267
267
  id: 'error.cashier.amount-below-method-limit',
268
268
  defaultMessage: 'Amount is too low.'
@@ -271,7 +271,7 @@ var DepositWidget = function (_Component) {
271
271
  }
272
272
 
273
273
  var spainRemainingDepositAmount = _this2.getSpainRemainingDepositAmount();
274
- if (amount > parseFloat(selectedMethod.limit.max) || remainingDepositLimit !== false && amount > remainingDepositLimit || spainRemainingDepositAmount !== false && spainRemainingDepositAmount - parseFloat(amount) < 0) {
274
+ if (amount > parseFloat(500) || remainingDepositLimit !== false && amount > remainingDepositLimit || spainRemainingDepositAmount !== false && spainRemainingDepositAmount - parseFloat(amount) < 0) {
275
275
  errors.amount.push(React.createElement(Translate, {
276
276
  id: 'error.cashier.amount-above-method-limit',
277
277
  defaultMessage: 'Amount is too high.'
@@ -666,8 +666,8 @@ var _initialiseProps = function _initialiseProps() {
666
666
  providerType: method.providerType,
667
667
  lastDepositAmount: paymentStats.LastDepositAmount,
668
668
  remainingDepositLimit: remainingDepositLimit,
669
- methodMin: method.limit.min,
670
- methodMax: method.limit.max,
669
+ methodMin: 1,
670
+ methodMax: 500,
671
671
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
672
672
  cancelWithdrawalAmount: method.amount,
673
673
  spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
@@ -141,7 +141,7 @@ var WithdrawWidget = function (_PureComponent) {
141
141
  if (amount === undefined) {
142
142
  return errors;
143
143
  }
144
- if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
144
+ if (amount && Number(amount) < parseFloat(1)) {
145
145
  errors.amount.push(React.createElement(Translate, {
146
146
  id: 'error.cashier.amount-below-method-limit',
147
147
  defaultMessage: 'Amount is too low.'
@@ -149,7 +149,7 @@ var WithdrawWidget = function (_PureComponent) {
149
149
  return errors;
150
150
  }
151
151
 
152
- if (Number(amount) > parseFloat(selectedMethod.limit.max)) {
152
+ if (Number(amount) > parseFloat(500)) {
153
153
  errors.amount.push(React.createElement(Translate, {
154
154
  id: 'error.cashier.amount-above-method-limit',
155
155
  defaultMessage: 'Amount is too high.'
@@ -74,7 +74,7 @@ var SelectedPaymentMethod = function (_Component) {
74
74
  id: 'noun.min_limit',
75
75
  values: {
76
76
  limit: _react2.default.createElement(_Money2.default, {
77
- value: selectedMethod.limit.min,
77
+ value: 1,
78
78
  maximumFractionDigits: 0,
79
79
  currency: currency
80
80
  })
@@ -85,7 +85,7 @@ var SelectedPaymentMethod = function (_Component) {
85
85
  id: 'noun.max_limit',
86
86
  values: {
87
87
  limit: _react2.default.createElement(_Money2.default, {
88
- value: selectedMethod.limit.max,
88
+ value: 500,
89
89
  maximumFractionDigits: 0,
90
90
  currency: currency
91
91
  })
@@ -173,8 +173,8 @@ var DepositWidget = function (_Component) {
173
173
  providerType: selectedMethod.providerType,
174
174
  lastDepositAmount: paymentStats.LastDepositAmount,
175
175
  remainingDepositLimit: remainingDepositLimit,
176
- methodMin: selectedMethod.limit.min,
177
- methodMax: selectedMethod.limit.max,
176
+ methodMin: 1,
177
+ methodMax: 500,
178
178
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
179
179
  cancelWithdrawalAmount: selectedMethod.amount,
180
180
  spainRemainingDepositAmount: _this.getSpainRemainingDepositAmount()
@@ -327,7 +327,7 @@ var DepositWidget = function (_Component) {
327
327
  return errors;
328
328
  }
329
329
 
330
- if (amount < parseFloat(selectedMethod.limit.min) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
330
+ if (amount < parseFloat(1) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
331
331
  errors.amount.push(_react2.default.createElement(_Translate2.default, {
332
332
  id: 'error.cashier.amount-below-method-limit',
333
333
  defaultMessage: 'Amount is too low.'
@@ -336,7 +336,7 @@ var DepositWidget = function (_Component) {
336
336
  }
337
337
 
338
338
  var spainRemainingDepositAmount = _this2.getSpainRemainingDepositAmount();
339
- if (amount > parseFloat(selectedMethod.limit.max) || remainingDepositLimit !== false && amount > remainingDepositLimit || spainRemainingDepositAmount !== false && spainRemainingDepositAmount - parseFloat(amount) < 0) {
339
+ if (amount > parseFloat(500) || remainingDepositLimit !== false && amount > remainingDepositLimit || spainRemainingDepositAmount !== false && spainRemainingDepositAmount - parseFloat(amount) < 0) {
340
340
  errors.amount.push(_react2.default.createElement(_Translate2.default, {
341
341
  id: 'error.cashier.amount-above-method-limit',
342
342
  defaultMessage: 'Amount is too high.'
@@ -731,8 +731,8 @@ var _initialiseProps = function _initialiseProps() {
731
731
  providerType: method.providerType,
732
732
  lastDepositAmount: paymentStats.LastDepositAmount,
733
733
  remainingDepositLimit: remainingDepositLimit,
734
- methodMin: method.limit.min,
735
- methodMax: method.limit.max,
734
+ methodMin: 1,
735
+ methodMax: 500,
736
736
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
737
737
  cancelWithdrawalAmount: method.amount,
738
738
  spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
@@ -198,7 +198,7 @@ var WithdrawWidget = function (_PureComponent) {
198
198
  if (amount === undefined) {
199
199
  return errors;
200
200
  }
201
- if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
201
+ if (amount && Number(amount) < parseFloat(1)) {
202
202
  errors.amount.push(_react2.default.createElement(_Translate2.default, {
203
203
  id: 'error.cashier.amount-below-method-limit',
204
204
  defaultMessage: 'Amount is too low.'
@@ -206,7 +206,7 @@ var WithdrawWidget = function (_PureComponent) {
206
206
  return errors;
207
207
  }
208
208
 
209
- if (Number(amount) > parseFloat(selectedMethod.limit.max)) {
209
+ if (Number(amount) > parseFloat(500)) {
210
210
  errors.amount.push(_react2.default.createElement(_Translate2.default, {
211
211
  id: 'error.cashier.amount-above-method-limit',
212
212
  defaultMessage: 'Amount is too high.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.1.16-vega-integration.0",
3
+ "version": "6.1.16-vega-integration.3",
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": "931db05da815a1540d5a16bdde606f8f762e6c41"
79
+ "gitHead": "431a5345ddf66d47bd639a12adcf67f77c8af6e6"
80
80
  }