@bytebrand/fe-ui-core-autobahn 1.0.39 → 1.0.40
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 +1 -1
- package/vdp/VdpModules.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"license": "UNLICENSED",
|
package/vdp/VdpModules.tsx
CHANGED
|
@@ -609,7 +609,9 @@ export const PriceHistory: React.FunctionComponent<PriceHistoryProps> = ({ vehic
|
|
|
609
609
|
0,
|
|
610
610
|
Math.min(1, (vehicle.price - vehicle.marketLow!) / (vehicle.marketHigh! - vehicle.marketLow!)),
|
|
611
611
|
);
|
|
612
|
-
|
|
612
|
+
// marketAvg is the raw ML-predicted price (a float, e.g. 14284.277) — round before display,
|
|
613
|
+
// else eur()'s toLocaleString prints the fractional part as a bogus "1.035,277 €".
|
|
614
|
+
const delta = Math.round(vehicle.marketAvg! - vehicle.price);
|
|
613
615
|
marketBlock = (
|
|
614
616
|
<div>
|
|
615
617
|
<div className="md-title-sm" style={{ marginBottom: 12 }}>
|