Skip to content

Commit

Permalink
prevent sending empty comments.
Browse files Browse the repository at this point in the history
hopefully fixes #29
  • Loading branch information
fiatjaf committed Nov 27, 2023
1 parent cf77c6a commit fe2663c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function Editor({
</InfoButton>
<PostButton
onClick={publicKey ? publishEvent : establishNostrKey}
disabled={!editable}
disabled={!editable || comment.trim() === ''}
aria-label={
publicKey ? (editable ? 'Post comment' : 'Submitting') : 'Comment'
}
Expand Down

0 comments on commit fe2663c

Please sign in to comment.