Skip to content

Commit

Permalink
Merge pull request #177 from homenoc/fix-some-bugs
Browse files Browse the repository at this point in the history
Fix expired group's email list in Dashboard
  • Loading branch information
symysak authored Jun 22, 2024
2 parents 0a8309f + 9211624 commit 4a608b9
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 4a608b9

Please sign in to comment.