Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit committed Jan 6, 2025
1 parent b43b877 commit c19307c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,14 @@ const OrderHistory: React.FC = () => {
const [selectedSystem, setSelectedSystem] = useState<string>(specifiedSystem);
const [selectedStatus, setSelectedStatus] = useState<string>(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 (
Expand Down

0 comments on commit c19307c

Please sign in to comment.