Skip to content

Commit

Permalink
update to ensure that terminating engagements are counted as past (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdouble authored Aug 27, 2021
1 parent 18801e8 commit 3a813c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/dashboard/widgets/dashboard_data_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function DashboardDataCard({
subtitle,
}: DashboardDataCardProps) {
const history = useHistory();

return (
<Card style={{ height: '100%' }}>
<CardBody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/dashboard/widgets/dw_engagement_count.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const EngagementCountWidget = (
engagements.filter(
e => getEngagementStatus(e) === EngagementStatus.upcoming
).length,
engagements.filter(e => getEngagementStatus(e) === EngagementStatus.past)
.length,
engagements.filter(e => getEngagementStatus(e) === EngagementStatus.past || getEngagementStatus(e) === EngagementStatus.terminating
).length,
];
return (
<Card style={{ height: '100%' }}>
Expand Down

0 comments on commit 3a813c7

Please sign in to comment.