diff --git a/libs/tup-components/src/projects/ProjectsListing/ProjectsListingAllocationTable.tsx b/libs/tup-components/src/projects/ProjectsListing/ProjectsListingAllocationTable.tsx index 281f81c18..3864a0f5e 100644 --- a/libs/tup-components/src/projects/ProjectsListing/ProjectsListingAllocationTable.tsx +++ b/libs/tup-components/src/projects/ProjectsListing/ProjectsListingAllocationTable.tsx @@ -11,7 +11,6 @@ export const ProjectsListingAllocationTable: React.FC<{ project: ProjectsRawSystem; }> = ({ project }) => { const allocations = project.allocations || []; - const isActive = allocations.some((a) => a.status === 'Active'); return (
Systems | Awarded | Used | +Status | Expires | - {allocations - // Show expired allocations if the project is inactive. - .filter((a) => (isActive ? a.status === 'Active' : true)) - .map((allocation) => ( -
---|---|---|---|---|
{allocation.resource} | -{allocation.total} SU | -{allocation.used} SU | -{formatDate(allocation.end)} | -|
{allocation.resource} | +{allocation.total} SU | +{allocation.used} SU | +{allocation.status ?? '-'} | +{formatDate(allocation.end)} | +