Skip to content

Commit

Permalink
Merge pull request #180 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 authored Jun 22, 2024
2 parents f48313d + 28890e7 commit 14c94c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ export default function Dashboard() {
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 }
if (item.member_expired === '' || item.member_expired === null) { return true }
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 14c94c8

Please sign in to comment.