Skip to content

Commit

Permalink
Merge pull request #178 from homenoc/develop
Browse files Browse the repository at this point in the history
Fix expired group's email list in Dashboard
  • Loading branch information
symysak committed Jun 22, 2024
2 parents aef13eb + 4a608b9 commit f48313d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ export default function Dashboard() {
if (!expired_status1IsChecked && item.expired_status === 1) { return false }
if (!expired_status2IsChecked && item.expired_status === 2) { return false }
if (!expired_status3IsChecked && item.expired_status === 3) { return false }

if(new Date() < new Date(item.member_expired.split('T')[0]) ) { return false }
return true
}).map(((group) =>
group.users?.filter((user) =>
Expand Down

0 comments on commit f48313d

Please sign in to comment.