tg-core-components 6.1.16-vega-integration.2 → 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
  })
@@ -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.'
@@ -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
  })
@@ -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.'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.1.16-vega-integration.2",
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": "5b7548653fb2af4e797105980801abed1e503aa8"
79
+ "gitHead": "431a5345ddf66d47bd639a12adcf67f77c8af6e6"
80
80
  }