Skip to content

Commit

Permalink
Reword, format
Browse files Browse the repository at this point in the history
  • Loading branch information
bnord01 committed Jan 17, 2024
1 parent 6d7d7b6 commit 74277ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SensorChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ function extractRecentDaysDataset(
};
return {
labels: details.moistureMeasurements.map((d) => {
if (hourly) return d.timestamp.toLocaleTimeString();
if (hourly) return d.timestamp.toLocaleTimeString(undefined, { hour: "numeric", minute: "2-digit" });
else return d.timestamp.toLocaleDateString();
}),
datasets: [
{
label: "Tageswert",
label: "Sensormittel",
type: "line",
data: details.moistureMeasurements.map((d) => d.sensor),
borderColor: colors.green,
Expand Down

0 comments on commit 74277ba

Please sign in to comment.