Skip to content

Commit d764e37

Browse files
committed
Merge branch 'preview'
2 parents aecb325 + 0ba228f commit d764e37

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/inputs/editor/Editor.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function Editor(props: Props) {
4040
const [languages, setLanguages] = useState<Language[]>([]);
4141
const [images, setImages] = useState<UploadImage[]>();
4242
const [embedSuggestions, setEmbedSuggestions] = useState<Set<string>>(
43-
new Set(""),
43+
new Set("")
4444
);
4545
const [linkEmbed, setLinkEmbed] = useState("");
4646
const [linkCard, setLinkCard] = useState<LinkMeta | null>(null);
@@ -49,7 +49,7 @@ export default function Editor(props: Props) {
4949
const quoteAuthor = quote?.author.displayName || quote?.author.handle;
5050
const placeholderText = getComposerPlaceholder(
5151
replyTo ? "reply" : quote ? "quote" : "post",
52-
replyAuthor ?? quoteAuthor,
52+
replyAuthor ?? quoteAuthor
5353
);
5454

5555
const editor = useEditor({
@@ -118,7 +118,10 @@ export default function Editor(props: Props) {
118118
});
119119

120120
const hasContent =
121-
quote || images || linkEmbed || richText.graphemeLength !== 0
121+
quote ||
122+
(images && images.length > 0) ||
123+
linkEmbed ||
124+
richText.graphemeLength !== 0
122125
? true
123126
: false;
124127

0 commit comments

Comments
 (0)