@bytebrand/fe-ui-core 4.8.24 → 4.8.26

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": "@bytebrand/fe-ui-core",
3
- "version": "4.8.24",
3
+ "version": "4.8.26",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import Slider from 'react-slick';
3
3
  import classnames from 'classnames';
4
- import _isLength from 'lodash/isLength';
5
4
  import Image from '../Image/Image';
6
5
  import Loader from '../Loader/Loader';
7
6
  import LazyLoad from 'react-lazyload';
@@ -39,7 +38,7 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
39
38
 
40
39
  const isMyVehicle: boolean = type === 'myVehicle';
41
40
 
42
- if (_isLength(images)) return false;
41
+ if (images && images.length > 0) return false;
43
42
  getCarImagesData(id, true, isMyVehicle, type, typeAlternative).then((data) => {
44
43
  // a case when all images are in_postprocessing
45
44
 
@@ -451,9 +451,9 @@ const getDecoratedProps = (
451
451
  maximumWeight: {
452
452
  title: t('vehicleProps:title.maximumWeight'),
453
453
  get value() {
454
- const cargoCapacity = car.sizeVolumeWeight && car.sizeVolumeWeight.cargoCapacity;
455
- return Number.isFinite(cargoCapacity)
456
- ? t('vehicleProps:value.maximumWeightCapacity', { capacity: cargoCapacity.toLocaleString(language) })
454
+ const maxWeight = car.sizeVolumeWeight && car.sizeVolumeWeight.maxWeight;
455
+ return Number.isFinite(maxWeight)
456
+ ? t('vehicleProps:value.maximumWeightCapacity', { capacity: maxWeight.toLocaleString(language) })
457
457
  : t('vehicleProps:value.na');
458
458
  }
459
459
  },