@woosmap/ui 4.226.18 → 4.226.20

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.18",
3
+ "version": "4.226.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -50,11 +50,15 @@ export default class PricingSlider extends Component {
50
50
 
51
51
  computeQueries = (valueNow) => {
52
52
  const pricing = this.getDisplayedPricing();
53
+ console.log('coucou', pricing);
53
54
  if (pricing.length === 1) {
55
+ console.log('return', valueNow);
54
56
  return valueNow;
55
57
  }
56
58
  const tierIndex = Math.min(Math.floor(valueNow / 100000), pricing.length - 2);
57
59
 
60
+ console.log('damn', tierIndex);
61
+
58
62
  // eslint-disable-next-line prefer-destructuring
59
63
  const tier = pricing[tierIndex][0];
60
64
  const value = valueNow - tierIndex * 100000;