Skip to content
Snippets Groups Projects
Commit 4c495d93 authored by Thomas Bouquet's avatar Thomas Bouquet
Browse files

console

parent 6181acb5
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ import { useIsParticipant } from "../../hooks/authTools";
function Submit (props) {
const exists = useIsParticipant({id: 17});
/*var [participants,setParticipants] = useState([]);
useEffect(() => {
const interval = setInterval(() => {
......@@ -38,7 +40,7 @@ function Submit (props) {
}, (error) => {
console.log(error);
}).then(() => {
if (useIsParticipant({id: 17}) === false){
if (!exists){
axios.post('/api/admin/new_participant',
{
id: 17,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment