File tree 1 file changed +6
-3
lines changed
src/components/inputs/editor
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default function Editor(props: Props) {
40
40
const [ languages , setLanguages ] = useState < Language [ ] > ( [ ] ) ;
41
41
const [ images , setImages ] = useState < UploadImage [ ] > ( ) ;
42
42
const [ embedSuggestions , setEmbedSuggestions ] = useState < Set < string > > (
43
- new Set ( "" ) ,
43
+ new Set ( "" )
44
44
) ;
45
45
const [ linkEmbed , setLinkEmbed ] = useState ( "" ) ;
46
46
const [ linkCard , setLinkCard ] = useState < LinkMeta | null > ( null ) ;
@@ -49,7 +49,7 @@ export default function Editor(props: Props) {
49
49
const quoteAuthor = quote ?. author . displayName || quote ?. author . handle ;
50
50
const placeholderText = getComposerPlaceholder (
51
51
replyTo ? "reply" : quote ? "quote" : "post" ,
52
- replyAuthor ?? quoteAuthor ,
52
+ replyAuthor ?? quoteAuthor
53
53
) ;
54
54
55
55
const editor = useEditor ( {
@@ -118,7 +118,10 @@ export default function Editor(props: Props) {
118
118
} ) ;
119
119
120
120
const hasContent =
121
- quote || images || linkEmbed || richText . graphemeLength !== 0
121
+ quote ||
122
+ ( images && images . length > 0 ) ||
123
+ linkEmbed ||
124
+ richText . graphemeLength !== 0
122
125
? true
123
126
: false ;
124
127
You can’t perform that action at this time.
0 commit comments