Skip to content

Commit

Permalink
add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MysterionAutotronic committed Jun 11, 2024
1 parent 2453b97 commit 237ed5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/Admin/components/Submissions/Submissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export default function Submissions() {
const [rowData, setRowData] = useState<UserSubmissionTableElement[]>([]);

useEffect(() => {
/**
* connect SSE to the backend to get the submission status changes in real time and update the table accordingly
* @author Timo Hauser
* @author David Linhardt
*
* @async
* @returns {void}
*/
const connect = async () => {
try {
const res = await submission.heartbeat();
Expand Down

0 comments on commit 237ed5f

Please sign in to comment.