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 e966230 commit 4d1b043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ const OrderHistory: React.FC = () => {
},
{
Header: "Number of Products",
accessor: (row) => row.lines.length,
accessor: (row: OrderHistoryRow) => row.lines.length,
},
{
Header: "System",
accessor: (row) => {
accessor: (row: OrderHistoryRow) => {
const systemId = row.lines[0]?.product.system;
const system = integratedSystemList.data?.results.find(
(sys) => sys.id === systemId,
Expand All @@ -111,11 +111,11 @@ const OrderHistory: React.FC = () => {
},
{
Header: "Total Price Paid",
accessor: (row) => Number(row.total_price_paid).toFixed(2),
accessor: (row: OrderHistoryRow) => Number(row.total_price_paid).toFixed(2),
},
{
Header: "Created On",
accessor: (row) => new Date(row.created_on).toLocaleString(),
accessor: (row: OrderHistoryRow) => new Date(row.created_on).toLocaleString(),
},
],
[integratedSystemList.data],
Expand Down

0 comments on commit 4d1b043

Please sign in to comment.