]> Untitled Git - lemmy-ui.git/commitdiff
Update src/shared/components/common/markdown-textarea.tsx
authorJay Sitter <jsit@users.noreply.github.com>
Sat, 24 Jun 2023 04:06:18 +0000 (00:06 -0400)
committerGitHub <noreply@github.com>
Sat, 24 Jun 2023 04:06:18 +0000 (00:06 -0400)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
src/shared/components/common/markdown-textarea.tsx

index ef932732ff6e2492193a433999b3eaa25a55e226..dffb58e37dfabceab9a939135818653807dc6627 100644 (file)
@@ -295,7 +295,7 @@ export class MarkdownTextArea extends Component<
             )}
             <button
               type="button"
-              disabled={!this.state.content ? true : false}
+              disabled={!this.state.content}
               className={`btn btn-sm btn-secondary ms-2 ${
                 this.state.previewMode && "active"
               }`}