diff --git a/src/dashboards/Agent.tsx b/src/dashboards/Agent.tsx index 38183407..0ed93eea 100644 --- a/src/dashboards/Agent.tsx +++ b/src/dashboards/Agent.tsx @@ -164,6 +164,21 @@ export default function AgentDashboard({user}: Props) { ))} +
+ Referenced corporate expiring in 1 month +
+ {users + .filter( + (x) => + referredCorporateFilter(x) && + moment().isAfter(moment(x.subscriptionExpirationDate).subtract(30, "days")) && + moment().isBefore(moment(x.subscriptionExpirationDate)), + ) + .map((x) => ( + + ))} +
+
);