Skip to content

Commit 460c1c1

Browse files
committed
basic types
1 parent a803331 commit 460c1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/LineChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { vialColors } from "~/utils/chart/colors";
1212

1313
const processData = (data, vials, property) => {
1414
return data.map((entry) => {
15-
const processedEntry = {
15+
const processedEntry: { [key: string]: string } = {
1616
timestamp: new Date(entry.timestamp * 1000).toLocaleTimeString(), // Convert timestamp to readable time
1717
};
1818

@@ -40,7 +40,7 @@ export const HardwareLineChart = ({ vials, rawData, property = "raw" }) => {
4040
<YAxis />
4141
<Tooltip />
4242
<Legend />
43-
{vials.map((vial, index) => (
43+
{vials.map((vial: number, index: number) => (
4444
<Line
4545
key={vial}
4646
type="monotone"

0 commit comments

Comments
 (0)