From d121f5c39c00aaa139e2803d10b8a4475df6f37c Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 5 Oct 2020 11:25:20 -0400 Subject: [PATCH] remove unused variable --- ui/component/commentCreate/view.jsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 75485e3a0..2cbedc127 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -62,10 +62,6 @@ export function CommentCreate(props: Props) { setCommentValue(commentValue); } - function handleCommentAck() { - setCommentAck(true); - } - function altEnterListener(e: SyntheticKeyboardEvent<*>) { if (e.shiftKey && e.keyCode === 13) { e.preventDefault(); @@ -75,9 +71,6 @@ export function CommentCreate(props: Props) { function onTextareaFocus() { window.addEventListener('keydown', altEnterListener); - if (!commentAck) { - openModal(MODALS.COMMENT_ACKNOWEDGEMENT, { onCommentAcknowledge: handleCommentAck }); - } } function onTextareaBlur() {