@woosmap/ui 4.232.0 → 4.232.2

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.
@@ -35,14 +35,13 @@ export default class PricingSimulator extends Component {
35
35
 
36
36
  // eslint-disable-next-line sonarjs/cognitive-complexity
37
37
  computeTotal = () => {
38
- let eligibleTotal = 0;
39
- let notEligibleTotal = 0;
38
+ let total = 0;
39
+
40
40
  let contactSale = false;
41
41
 
42
42
  const { sliders } = this.state;
43
43
  Object.keys(sliders).forEach((category) => {
44
44
  Object.keys(sliders[category]).forEach((pricingKey) => {
45
- const { discountEligible } = PricingData[category].pricings[pricingKey];
46
45
  const { amount, computedQueries } = sliders[category][pricingKey];
47
46
  if (typeof amount !== 'number' || typeof computedQueries !== 'number') {
48
47
  if (computedQueries === '∞') {
@@ -50,24 +49,15 @@ export default class PricingSimulator extends Component {
50
49
  }
51
50
  return;
52
51
  }
53
- if (discountEligible) {
54
- eligibleTotal += amount;
55
- } else if (computedQueries > 0) {
56
- notEligibleTotal += amount;
52
+ if (computedQueries > 0) {
53
+ total += amount;
57
54
  }
58
55
  });
59
56
  });
60
- const { currency } = this.props;
61
- const discount = currency === '£' ? 170 : 200;
62
- const total = notEligibleTotal + Math.max(eligibleTotal - discount, 0);
63
- const totalBeforeDiscount = notEligibleTotal + eligibleTotal;
57
+
64
58
  return {
65
59
  total,
66
- notEligibleTotal,
67
- eligibleTotal,
68
60
  contactSale,
69
- discount,
70
- totalBeforeDiscount,
71
61
  };
72
62
  };
73
63
 
package/storybook.log ADDED
@@ -0,0 +1,3 @@
1
+ Usage Error: Package "@storybook/addon-styling-webpack" is already listed as a regular dependency - remove the -D,-P flags or remove it from your dependencies first
2
+
3
+ $ yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...