(event)
| 14 | let navigate = useNavigate(); |
| 15 | |
| 16 | const onSubmit = (event) => { |
| 17 | event.preventDefault(); |
| 18 | if(email === "n" && password === "n"){ |
| 19 | navigate("/json"); |
| 20 | } |
| 21 | else{ |
| 22 | toast.error("Invalid Credentials", {autoClose:3000}); |
| 23 | } |
| 24 | }; |
| 25 | |
| 26 | return ( |
| 27 | <div> |
nothing calls this directly
no outgoing calls
no test coverage detected