@woosmap/ui 4.164.6 → 4.164.7

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.6",
3
+ "version": "4.164.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -61,7 +61,7 @@ class PricingSlider extends Component {
61
61
  const tier = pricing[matchedTierIndex];
62
62
  if (tier) {
63
63
  const previousTier = matchedTierIndex > 0 ? pricing[matchedTierIndex - 1][0] : 0;
64
- const queries = matchedTierIndex * 100000 + (100000 * (value - previousTier)) / tier[0];
64
+ const queries = matchedTierIndex * 100000 + (100000 * (value - previousTier)) / (tier[0]-previousTier);
65
65
  this.onChange(queries);
66
66
  }
67
67
  };
@@ -138,6 +138,7 @@ class PricingSlider extends Component {
138
138
  const { name, productPricing, currency, values, id } = this.props;
139
139
  const { queries } = values;
140
140
  const { displayedPricing, amount, formatedQueries, marks, computedQueries } = this.getDisplayedData(queries);
141
+
141
142
  let displayedAmount = <span className="amount">{`0${currency}`}</span>;
142
143
  if (amount === '∞') {
143
144
  displayedAmount = this.contactSalesButton();