diff --git a/view/next-project/src/pages/purchaseorders/index.tsx b/view/next-project/src/pages/purchaseorders/index.tsx index 0690cac1..bc3434b4 100644 --- a/view/next-project/src/pages/purchaseorders/index.tsx +++ b/view/next-project/src/pages/purchaseorders/index.tsx @@ -69,7 +69,7 @@ export default function PurchaseOrders(props: Props) { const filteredPurchaseOrderViews = useMemo(() => { return purchaseOrderViews.filter((purchaseOrderView: PurchaseOrderView) => { - return purchaseOrderView.purchaseOrder.deadline.includes(selectedYear); + return purchaseOrderView.purchaseOrder.createdAt?.includes(selectedYear); }); }, [purchaseOrderViews, selectedYear]);