Skip to content

Commit

Permalink
fix: "Add tag" entry allows to add empty tags when there is at least …
Browse files Browse the repository at this point in the history
…1 tag
  • Loading branch information
br14n-sol committed Dec 16, 2024
1 parent ab8a774 commit 037e458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/screens/novel/components/EditInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ const EditInfoModal = ({
onSubmitEditing={() => {
const newGenreTrimmed = newGenre.trim();

if (newGenreTrimmed === '') {
return;
}

setNovelInfo(prevVal => ({
...prevVal,
genres: novelInfo.genres
Expand Down

0 comments on commit 037e458

Please sign in to comment.