formatting fixes
This commit is contained in:
@@ -528,8 +528,7 @@
|
||||
const sleepDate = new Date(sleep.start_time);
|
||||
const matchesTimeRange = sleepDate >= cutoffDate;
|
||||
const matchesChild =
|
||||
!selectedChildId ||
|
||||
sleep.child_id === parseInt(selectedChildId);
|
||||
!selectedChildId || sleep.child_id === parseInt(selectedChildId);
|
||||
return matchesTimeRange && matchesChild;
|
||||
});
|
||||
|
||||
@@ -576,7 +575,8 @@
|
||||
|
||||
// Prepare data for charts
|
||||
const barChartData = prepareBarChartData(filteredSleeps, timeRange);
|
||||
const durationDistData = prepareDurationDistributionData(completedSleeps);
|
||||
const durationDistData =
|
||||
prepareDurationDistributionData(completedSleeps);
|
||||
|
||||
let html = `
|
||||
<div class="stats-grid">
|
||||
|
||||
Reference in New Issue
Block a user