Update index.html

pull/27/head
accius 4 months ago
parent 5f0d61a38e
commit 882561e598

@ -1889,9 +1889,17 @@
</div> </div>
{/* 24 hour cells */} {/* 24 hour cells */}
{Array.from({ length: 24 }, (_, hour) => { {Array.from({ length: 24 }, (_, hour) => {
const bandData = hourlyPredictions?.[band]; // For current hour, use currentBands (same hybrid data as bars view)
const hourData = bandData?.find(h => h.hour === hour); // For other hours, use hourlyPredictions
const rel = hourData?.reliability || 0; let rel;
if (hour === currentHour) {
const currentBandData = currentBands.find(b => b.band === band);
rel = currentBandData?.reliability || 0;
} else {
const bandData = hourlyPredictions?.[band];
const hourData = bandData?.find(h => h.hour === hour);
rel = hourData?.reliability || 0;
}
return ( return (
<div <div
key={hour} key={hour}

Loading…
Cancel
Save

Powered by TurnKey Linux.