@woosmap/ui 4.164.1 → 4.164.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.
package/package.json
CHANGED
|
@@ -13,8 +13,7 @@ class PricingSlider extends Component {
|
|
|
13
13
|
if (queries === '∞') {
|
|
14
14
|
return queries;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
pricing.reduce((amount, tier, index) => {
|
|
16
|
+
return pricing.reduce((amount, tier, index) => {
|
|
18
17
|
previousPricingTier = index > 0 ? pricing[index - 1] : null;
|
|
19
18
|
|
|
20
19
|
if (previousPricingTier !== null) {
|
|
@@ -29,9 +28,8 @@ class PricingSlider extends Component {
|
|
|
29
28
|
return amount + (valueToRemove / 1000) * tier[1] * coef;
|
|
30
29
|
}
|
|
31
30
|
return amount;
|
|
32
|
-
}, 0)
|
|
33
|
-
|
|
34
|
-
);
|
|
31
|
+
}, 0)
|
|
32
|
+
|
|
35
33
|
};
|
|
36
34
|
|
|
37
35
|
computeQueries = (valueNow) => {
|
|
@@ -141,7 +139,7 @@ class PricingSlider extends Component {
|
|
|
141
139
|
if (amount === '∞') {
|
|
142
140
|
displayedAmount = this.contactSalesButton();
|
|
143
141
|
} else if (amount > 0) {
|
|
144
|
-
displayedAmount = <span className="amount">{`${amount}${currency}`}</span>;
|
|
142
|
+
displayedAmount = <span className="amount">{`${parseInt(amount, 10)}${currency}`}</span>;
|
|
145
143
|
} else if (amount === 0 && computedQueries > 0) {
|
|
146
144
|
displayedAmount = <span className="free-label">FREE</span>;
|
|
147
145
|
}
|