remove unused variable

This commit is contained in:
Sean Yesmunt 2020-10-05 11:25:20 -04:00
parent 248e7a1f9e
commit d121f5c39c

View file

@ -62,10 +62,6 @@ export function CommentCreate(props: Props) {
setCommentValue(commentValue); setCommentValue(commentValue);
} }
function handleCommentAck() {
setCommentAck(true);
}
function altEnterListener(e: SyntheticKeyboardEvent<*>) { function altEnterListener(e: SyntheticKeyboardEvent<*>) {
if (e.shiftKey && e.keyCode === 13) { if (e.shiftKey && e.keyCode === 13) {
e.preventDefault(); e.preventDefault();
@ -75,9 +71,6 @@ export function CommentCreate(props: Props) {
function onTextareaFocus() { function onTextareaFocus() {
window.addEventListener('keydown', altEnterListener); window.addEventListener('keydown', altEnterListener);
if (!commentAck) {
openModal(MODALS.COMMENT_ACKNOWEDGEMENT, { onCommentAcknowledge: handleCommentAck });
}
} }
function onTextareaBlur() { function onTextareaBlur() {