@woosmap/ui 4.164.1 → 4.164.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.164.1",
3
+ "version": "4.164.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -65,7 +65,7 @@ class PricingSimulator extends Component {
65
65
  const { sliders } = this.state;
66
66
  const { publicMode, currency } = this.props;
67
67
  const { total, discount, contactSale } = this.computeTotal();
68
- let totalDisplayed = total + currency;
68
+ let totalDisplayed = `${parseInt(total, 10)}${currency}`;
69
69
  if (contactSale) {
70
70
  totalDisplayed = <a href="/en/contact">Contact Sales</a>;
71
71
  }
@@ -13,8 +13,7 @@ class PricingSlider extends Component {
13
13
  if (queries === '∞') {
14
14
  return queries;
15
15
  }
16
- return parseInt(
17
- pricing.reduce((amount, tier, index) => {
16
+ return pricing.reduce((amount, tier, index) => {
18
17
  previousPricingTier = index > 0 ? pricing[index - 1] : null;
19
18
 
20
19
  if (previousPricingTier !== null) {
@@ -29,9 +28,8 @@ class PricingSlider extends Component {
29
28
  return amount + (valueToRemove / 1000) * tier[1] * coef;
30
29
  }
31
30
  return amount;
32
- }, 0),
33
- 10
34
- );
31
+ }, 0)
32
+
35
33
  };
36
34
 
37
35
  computeQueries = (valueNow) => {
@@ -141,7 +139,7 @@ class PricingSlider extends Component {
141
139
  if (amount === '∞') {
142
140
  displayedAmount = this.contactSalesButton();
143
141
  } else if (amount > 0) {
144
- displayedAmount = <span className="amount">{`${amount}${currency}`}</span>;
142
+ displayedAmount = <span className="amount">{`${parseInt(amount, 10)}${currency}`}</span>;
145
143
  } else if (amount === 0 && computedQueries > 0) {
146
144
  displayedAmount = <span className="free-label">FREE</span>;
147
145
  }