From ed0df4b7381ba2b30095da9d7b59e986af440999 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Wed, 1 Mar 2017 16:23:24 -0700 Subject: [PATCH] make sure reply box works --- client/coral-embed-stream/src/Embed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index d016af137..da9fd4b6e 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -77,8 +77,8 @@ class Embed extends Component { } } - setActiveReplyBox (reactKey) { - if (!this.props.currentUser) { + setActiveReplyBox = (reactKey) => { + if (!this.props.auth.user) { const offset = document.getElementById(`c_${reactKey}`).getBoundingClientRect().top - 75; this.props.showSignInDialog(offset); } else {