4.9.1
Fix vehicle day tabs
This commit is contained in:
+3
-5
@@ -209,11 +209,9 @@ export function deriveProfileMain(activeProfile, outdoorsVariant) {
|
||||
// every field matches its column key except utciAdj, whose column is utciP.
|
||||
const colKey = mainField === 'utciAdj' ? 'utciP' : mainField;
|
||||
const mainMetric = COL_DESCRIPTIONS[colKey] || {};
|
||||
// Vehicle/Driver has no secondary column — the small number is a live
|
||||
// re-run of the cabin model with ventilation forced on (see DayTabs).
|
||||
const secondaryMetric = isVehicleProfile
|
||||
? { title: 'Windows Open', desc: 'The same vehicle interior estimate, recalculated with the windows open — how much cooler the cabin would run if it were ventilated.' }
|
||||
: (secondaryField ? (COL_DESCRIPTIONS[secondaryField] || {}) : null);
|
||||
// Vehicle/Driver has no secondary column — the day tab shows only the cabin
|
||||
// temp for the config actually selected (vehicle type, ventilation, speed).
|
||||
const secondaryMetric = secondaryField ? (COL_DESCRIPTIONS[secondaryField] || {}) : null;
|
||||
|
||||
return {
|
||||
isHomeOrOffice, isVehicleProfile, isPetsProfile,
|
||||
|
||||
Reference in New Issue
Block a user