@woosmap/ui 4.220.6 → 4.220.8

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.6",
3
+ "version": "4.220.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -162,10 +162,11 @@ 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
  );
@@ -173,12 +174,11 @@ export default class PricingSlider extends Component {
173
174
  if (index === displayedPricing.length - 2) {
174
175
  return (
175
176
  <tr>
176
- <td>{`${numeral(displayedPricing[displayedPricing.length - 2][0]).format('0.[0]a')}+`}</td>
177
+ <td>{`${numeral(lower).format('0.[0]a')}+`}</td>
177
178
  <td>{this.displayAmount(tier[1])}</td>
178
179
  </tr>
179
180
  );
180
181
  }
181
- const lower = index > 0 ? displayedPricing[index - 1][0] : 0;
182
182
  return (
183
183
  <tr>
184
184
  <td>{`${numeral(lower).format('0.[0]a')} to ${numeral(tier[0]).format('0.[0]a')}`}</td>