From 237ed5ff722e67a684172b6067fc71b50f62f8df Mon Sep 17 00:00:00 2001 From: David Linhardt Date: Wed, 12 Jun 2024 00:03:02 +0200 Subject: [PATCH] add jsdoc --- src/pages/Admin/components/Submissions/Submissions.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/Admin/components/Submissions/Submissions.tsx b/src/pages/Admin/components/Submissions/Submissions.tsx index 373108c..f5a2f0d 100644 --- a/src/pages/Admin/components/Submissions/Submissions.tsx +++ b/src/pages/Admin/components/Submissions/Submissions.tsx @@ -73,6 +73,14 @@ export default function Submissions() { const [rowData, setRowData] = useState([]); 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();