@woosmap/ui 4.220.7 → 4.220.9

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.220.7",
3
+ "version": "4.220.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -23,7 +23,7 @@ const Pricing = {
23
23
  description:
24
24
  "Get suggestions for addresses, localities, postcodes and more with typo tolerance. Per terms, 'autocomplete' cannot be used alone, the 'details' endpoint is mandatory for detailed information.",
25
25
  pricing: [],
26
- discountEligible: true,
26
+ discountEligible: false,
27
27
  },
28
28
  'Search': {
29
29
  docLink: 'https://developers.woosmap.com/products/localities/search',
@@ -33,7 +33,7 @@ const Pricing = {
33
33
  description:
34
34
  "Get suggestions for points of interest based on their name, categories and city",
35
35
  pricing: [],
36
- discountEligible: true,
36
+ discountEligible: false,
37
37
  },
38
38
  'Details': {
39
39
  docLink: 'https://developers.woosmap.com/products/localities/details',
@@ -162,15 +162,15 @@ export default class PricingSlider extends Component {
162
162
  <td>{tr('Cost per 1000')}</td>
163
163
  </tr>
164
164
  {displayedPricing.map((tier, index) => {
165
+ const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
165
166
  if (index === displayedPricing.length - 1) {
166
167
  return (
167
168
  <tr>
168
- <td>{`${numeral(displayedPricing[displayedPricing.length - 1][0]).format('0.[0]a')}+`}</td>
169
+ <td>{`${numeral(lower).format('0.[0]a')}+`}</td>
169
170
  <td>Contact us for discount</td>
170
171
  </tr>
171
172
  );
172
173
  }
173
- const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
174
174
  if (index === displayedPricing.length - 2) {
175
175
  return (
176
176
  <tr>