From 25e261bb5595498c6e9483fbb827cf042b242614 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 17 May 2024 16:12:50 +0200 Subject: [PATCH] fix eslint --- src/components/post-form/post-form.tsx | 2 +- src/views/board/board.tsx | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/post-form/post-form.tsx b/src/components/post-form/post-form.tsx index 37406548..a11d8807 100644 --- a/src/components/post-form/post-form.tsx +++ b/src/components/post-form/post-form.tsx @@ -148,7 +148,7 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => { resetFields(); closeForm(); } - }, [replyIndex, resetContent]); + }, [replyIndex, resetContent, closeForm]); return ( diff --git a/src/views/board/board.tsx b/src/views/board/board.tsx index 6b855979..464a02f3 100644 --- a/src/views/board/board.tsx +++ b/src/views/board/board.tsx @@ -89,17 +89,16 @@ const Board = () => { {feed.length > 0 && ( <> {rules && rules.length > 0 && } - {(description && description.length > 0) || - (isInAllView && ( - - ))} + {((description && description.length > 0) || isInAllView) && ( + + )} )}