Skip to content

Commit 1b5cfc2

Browse files
show creds for customer who lastemailsent is credentials or expiring
1 parent ac3e362 commit 1b5cfc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/hackshack/f2fhelper/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { SEO } from '../../../components';
1111
const Student = (props) => {
1212
const getStudentsApi = `${process.env.GATSBY_WORKSHOPCHALLENGE_API_ENDPOINT}/api/students`;
1313
const getCustomerApi = `${process.env.GATSBY_WORKSHOPCHALLENGE_API_ENDPOINT}/api/customers`;
14-
const [students, setstudents] = useState([]);
14+
const [students, setStudents] = useState([]);
1515
const [error, setError] = useState('');
1616
const arr = [];
1717
const [index, setIndex] = useState(0);
@@ -78,7 +78,7 @@ const Student = (props) => {
7878
arr.push({ ...response.data });
7979
if (arr.length <= 0)
8080
setError('There are currently no active students. Stay tuned!');
81-
setstudents(arr);
81+
setStudents([...students, ...response.data]);
8282
})
8383
.catch((err) => {
8484
if (err.response.status === 401) {

0 commit comments

Comments
 (0)