From c19307c98a6257b8dfe5c956d8dfe9b5e24c2c91 Mon Sep 17 00:00:00 2001 From: CP Date: Mon, 6 Jan 2025 12:58:12 -0500 Subject: [PATCH] type --- src/app/history/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/history/page.tsx b/src/app/history/page.tsx index 71358b0..65a75bc 100644 --- a/src/app/history/page.tsx +++ b/src/app/history/page.tsx @@ -66,9 +66,14 @@ const OrderHistory: React.FC = () => { const [selectedSystem, setSelectedSystem] = useState(specifiedSystem); const [selectedStatus, setSelectedStatus] = useState(specifiedStatus); + interface OrderHistoryRow { + lines: { product: { system: string } }[]; + state: string; + } + const data = useMemo(() => { if (!history.data) return []; - const filteredData = history.data.results.filter((row) => { + const filteredData = history.data.results.filter((row: OrderHistoryRow) => { const system = String(row.lines[0]?.product.system); const status = row.state; return (