mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-18 09:24:19 +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 });
|
setFormState({ ...formState, [name]: value });
|
||||||
};
|
};
|
||||||
|
|
||||||
const submitForm = () => {
|
const submitForm = (event) => {
|
||||||
|
event.preventDefault();
|
||||||
const { spotifyUrl } = formState;
|
const { spotifyUrl } = formState;
|
||||||
if (spotifyURLisValid(spotifyUrl) === false) {
|
if (spotifyURLisValid(spotifyUrl) === false) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue