Skip to content

Commit

Permalink
Change logic for frontend submission collection
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Sep 26, 2023
1 parent f85cadf commit febeea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/ClubEditPage/ApplicationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ const NotificationModal = (props: {
if (data.email_type.id === 'acceptance' && !data.dry_run) {
const relevant = submissions.filter(
(sub) =>
sub.notified === false &&
(data.allow_resend || !sub.notified) &&
sub.status === 'Accepted' &&
sub.reason,
)
updateSubmissions(relevant)
} else if (data.email_type.id === 'rejection' && !data.dry_run) {
const relevant = submissions.filter(
(sub) =>
sub.notified === false &&
(data.allow_resend || !sub.notified) &&
sub.status.startsWith('Rejected') &&
sub.reason,
)
Expand Down

0 comments on commit febeea3

Please sign in to comment.