diff --git a/src/components/comment/CommentFormAttachButtons/index.tsx b/src/components/comment/CommentFormAttachButtons/index.tsx index a2888a5e..adc275c8 100644 --- a/src/components/comment/CommentFormAttachButtons/index.tsx +++ b/src/components/comment/CommentFormAttachButtons/index.tsx @@ -10,26 +10,32 @@ interface IProps { const CommentFormAttachButtons: FC = ({ onUpload }) => { const onInputChange = useCallback( - event => { + (event) => { event.preventDefault(); - const files = Array.from(event.target?.files as File[]).filter((file: File) => - COMMENT_FILE_TYPES.includes(file.type) + const files = Array.from(event.target?.files as File[]).filter( + (file: File) => COMMENT_FILE_TYPES.includes(file.type), ); if (!files || !files.length) return; onUpload(files); }, - [onUpload] + [onUpload], ); return ( - -