From ff046d001ba7b9ab784d2aa1a917536c56f23f8c Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 9 Mar 2022 16:36:35 +0800
Subject: Fix errors for eslint new rule.

---
 FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx')

diff --git a/FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx b/FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx
index 0eb9f53d..a3a8f408 100644
--- a/FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx
+++ b/FrontEnd/src/views/timeline-common/MarkdownPostEdit.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable react/jsx-no-undef */
 import React from "react";
 import classnames from "classnames";
 import { useTranslation } from "react-i18next";
@@ -118,7 +117,9 @@ const MarkdownPostEdit: React.FC<MarkdownPostEditProps> = ({
                   }
                 }}
               />
-              {canSend && <FlatButton text="timeline.send" onClick={send} />}
+              {canSend && (
+                <FlatButton text="timeline.send" onClick={() => void send()} />
+              )}
             </div>
           )
         }
-- 
cgit v1.2.3

