@woosmap/ui 4.226.9 → 4.226.11

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.226.9",
3
+ "version": "4.226.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -127,8 +127,11 @@ export default class PricingSlider extends Component {
127
127
  const { productPricing, currency, planId } = this.props;
128
128
  const product = this.findProduct(productPricing.productId);
129
129
  if (product && product.pricings[planId] && product.pricings[planId][currencyMap[currency]]) {
130
- const displayedPricing = product.pricings[planId][currencyMap[currency]];
131
- displayedPricing.push([displayedPricing[displayedPricing.length - 1][0] * 2, null]);
130
+ const displayedPricing = [...product.pricings[planId][currencyMap[currency]]];
131
+ if (displayedPricing.length > 1) {
132
+ displayedPricing[displayedPricing.length - 1][0] = displayedPricing[displayedPricing.length - 2][0] * 2;
133
+ displayedPricing.push([displayedPricing[displayedPricing.length - 2][0] * 4, null]);
134
+ }
132
135
  return displayedPricing;
133
136
  }
134
137
  return [];