fix(post form): make subject field optional, not mandatory

This commit is contained in:
plebeius.eth
2023-09-30 13:24:11 +02:00
parent e3b577b690
commit 548d4914bf
2 changed files with 0 additions and 10 deletions
-5
View File
@@ -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: {
-5
View File
@@ -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: {