mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +00:00
Prevent default form behavior.
This commit is contained in:
parent
a6a86eb95c
commit
ddab1611b8
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ const Form = ({ socket }) => {
|
|||
setFormState({ ...formState, [name]: value });
|
||||
};
|
||||
|
||||
const submitForm = () => {
|
||||
const submitForm = (event) => {
|
||||
event.preventDefault();
|
||||
const { spotifyUrl } = formState;
|
||||
if (spotifyURLisValid(spotifyUrl) === false) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue