aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-03-07 16:50:05 +0800
committercrupest <crupest@outlook.com>2021-03-07 16:50:05 +0800
commitd0759428e29812e19b3112cddcebf002dc542522 (patch)
treea340e375468a15bb6d6b715c7913a0b836061a93
parentc837d8f0341a2e6d7be74d9c2fb092fc2220f741 (diff)
downloadtimeline-d0759428e29812e19b3112cddcebf002dc542522.tar.gz
timeline-d0759428e29812e19b3112cddcebf002dc542522.tar.bz2
timeline-d0759428e29812e19b3112cddcebf002dc542522.zip
...
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
index efe5a6ff..9d742514 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx
@@ -126,7 +126,8 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => {
const canSend =
(kind === "text" && text.length !== 0) ||
- (kind === "image" && image != null);
+ (kind === "image" && image != null) ||
+ (kind === "markdown" && markdown.length !== 0);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const containerRef = React.useRef<HTMLDivElement>(null!);