@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
|
@@ -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
|
|
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
|
|