@bytebrand/fe-ui-core 4.8.30 → 4.8.31

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.30",
3
+ "version": "4.8.31",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -143,7 +143,9 @@ const getDecoratedLightProps = (
143
143
  ? t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit })
144
144
  : t('vehicleProps:value.na');
145
145
 
146
- const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
146
+ const consumptionPowerCombinedContent = Number.isFinite(consumptionPowerCombined)
147
+ ? t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
148
+ : null;
147
149
 
148
150
  const co2Value = Number.isFinite(co2)
149
151
  ? t('vehicleProps:value.co2Combined', { co2: co2.toLocaleString(language) })
@@ -233,8 +235,12 @@ const getDecoratedLightProps = (
233
235
 
234
236
  const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
235
237
  const consumptionCombinedContent = t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit });
236
- const wltpWeightedPowerCombinedContent = t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit });
237
- const wltpWeightedCombinedContent = t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit });
238
+ const wltpWeightedPowerCombinedContent = Number.isFinite(wltpWeightedPowerCombined)
239
+ ? t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit })
240
+ : null;
241
+ const wltpWeightedCombinedContent = Number.isFinite(wltpWeightedCombined)
242
+ ? t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit })
243
+ : null;
238
244
  const wltpConsumptionPowerCombinedContent = wltpConsumptionPowerCombined
239
245
  ? t('vehicleProps:value.wltpPowerCombined', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
240
246
  : null;