We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dccaa0 commit faf652dCopy full SHA for faf652d
src/pages/hackshack/f2fhelper/template.js
@@ -43,14 +43,18 @@ const Student = (props) => {
43
})
44
.then((response) => {
45
if (response.data.length) {
46
- response.data.forEach((item) => {
47
- if (
+ const filteredData = response.data.filter(
+ (item) =>
48
item.lastEmailSent === 'credentials' ||
49
- item.lastEmailSent === 'expiring'
50
- ) {
+ item.lastEmailSent === 'expiring',
+ );
51
+ if (filteredData.length) {
52
+ filteredData.forEach((item) => {
53
getStudents(token, item.studentId);
- }
- });
54
+ });
55
+ } else {
56
+ setError('There no active participants. Please try again later!');
57
+ }
58
}
59
60
.catch((err) => {
0 commit comments