diff --git a/app/src/components/Hero.jsx b/app/src/components/Hero.jsx index 4b799ed..7f99e0c 100644 --- a/app/src/components/Hero.jsx +++ b/app/src/components/Hero.jsx @@ -15,37 +15,37 @@ const Hero = () => { const [redirect, SetRedirect] = useState(0); const handleMinuteChange = (e) => { setGameMinute(e.target.value); - sentQuestion(); + //sentQuestion(); } const handleFirstShotChange = (event) => { setfirstShot(event.target.checked); - sentQuestion(); + //sentQuestion(); }; const handleOneOnOneChange = (event) => { SetoneOnOne(event.target.checked); - sentQuestion(); + //sentQuestion(); }; const handleAfterAirDuelChange = (event) => { SetafterAirDuele(event.target.checked); - sentQuestion(); + //sentQuestion(); }; const handleOpenGoalChange = (event) => { SetOpenGoal(event.target.checked); - sentQuestion(); + //sentQuestion(); }; const handleAfterDribblingChange = (event) => { SetafterDribbling(event.target.checked); - sentQuestion(); + //sentQuestion(); }; const handleRedirectChange = (event) => { SetRedirect(event.target.checked); - sentQuestion(); + //sentQuestion(); }; @@ -152,7 +152,7 @@ const handleRedirectChange = (event) => { }else if(possition == 0){ setNumberOfShooters(number_of_shooters_rev.current -= 1); } - sentQuestion() + //sentQuestion() } // funkcja zsczytuje pozycje zawodnikow przed wyslaniem zapytania do serwera @@ -289,12 +289,12 @@ const handleRedirectChange = (event) => { }) }) bojo.addEventListener("mouseup", function reload(){ - sentQuestion(); + //sentQuestion(); bojo.removeEventListener("mouseup",reload) }) }) - sentQuestion(); + //sentQuestion(); } // // Wyłanie zapytania do serwera function sentQuestion() { @@ -400,7 +400,8 @@ const handleRedirectChange = (event) => {
{setTechnique(event.target.value); - sentQuestion() + //sentQuestion() }} defaultValue = {technique}> @@ -428,7 +429,8 @@ const handleRedirectChange = (event) => {
{setActionType(event.target.value); - sentQuestion()}} + //sentQuestion() + }} defaultValue={technique}>