From 2e496411a387493e87087d90deb4ed5efe3c3417 Mon Sep 17 00:00:00 2001 From: Renard Date: Wed, 25 Sep 2019 15:33:33 -0300 Subject: Variable destructuring ✨ --- src/ReplyForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ReplyForm.js') diff --git a/src/ReplyForm.js b/src/ReplyForm.js index 8c942e7..33b33a0 100644 --- a/src/ReplyForm.js +++ b/src/ReplyForm.js @@ -86,8 +86,8 @@ class ReplyForm extends Component { render() { const { name, email, message, replyRes, attachment } = this.state; - const { currentBoard, nightMode, quickReply } = this.props; - if (this.props.locked === 1) { + const { currentBoard, nightMode, quickReply, locked } = this.props; + if (locked === 1) { return ( Hilo cerrado -- cgit v1.2.1-18-gbd029