mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 13:45:27 -05:00
New tournament/calendar form event report error instead of erroring out
This commit is contained in:
@@ -181,6 +181,12 @@ function EventForm() {
|
||||
React.useState(false);
|
||||
|
||||
const handleSubmit = () => {
|
||||
const isValid = ref.current?.checkValidity();
|
||||
if (!isValid) {
|
||||
ref.current?.reportValidity();
|
||||
return;
|
||||
}
|
||||
|
||||
const formData = new FormData(ref.current!);
|
||||
|
||||
// if "avatarImgId" it means they want to reuse an existing avatar
|
||||
|
||||
Reference in New Issue
Block a user