mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post form): make subject field optional, not mandatory
This commit is contained in:
@@ -463,11 +463,6 @@ const Board = () => {
|
||||
const handleSubmit = async (event) => {
|
||||
event.preventDefault();
|
||||
|
||||
if (subjectRef.current.value === '') {
|
||||
setNewErrorMessage('Subject field is mandatory');
|
||||
return;
|
||||
}
|
||||
|
||||
setPublishCommentOptions((prevPublishCommentOptions) => ({
|
||||
...prevPublishCommentOptions,
|
||||
author: {
|
||||
|
||||
@@ -1328,11 +1328,6 @@ const Catalog = () => {
|
||||
const handleSubmit = async (event) => {
|
||||
event.preventDefault();
|
||||
|
||||
if (subjectRef.current.value === '') {
|
||||
setNewErrorMessage('Subject field is mandatory');
|
||||
return;
|
||||
}
|
||||
|
||||
setPublishCommentOptions((prevPublishCommentOptions) => ({
|
||||
...prevPublishCommentOptions,
|
||||
author: {
|
||||
|
||||
Reference in New Issue
Block a user