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