@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
|
@@ -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();
|