@bytebrand/fe-ui-core 4.2.182 → 4.2.183

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.2.182",
3
+ "version": "4.2.183",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -463,7 +463,9 @@ export function getChipFilterValue(
463
463
  case 'SEATS':
464
464
  case 'CUBIC_CAPACITY':
465
465
  title = t(`SearchPage:filters.${chipFilterKey.toLocaleLowerCase()}`);
466
- const fromTo = `${chipFilterValue.from} - ${chipFilterValue.to}`;
466
+ const from = !!chipFilterValue.from ? `${t('SearchPage:filters.from')} ${chipFilterValue.from}` : '';
467
+ const to = !!chipFilterValue.to ? `${t('SearchPage:filters.to')} ${chipFilterValue.to}` : '';
468
+ const fromTo = (from && to) ? `${chipFilterValue.from} - ${chipFilterValue.to}` : `${from || to}`;
467
469
  filterValue = `${title} ${fromTo}`;
468
470
  break;
469
471