make sure reply box works

This commit is contained in:
Riley Davis
2017-03-01 16:32:01 -07:00
parent 472b087a6c
commit ed0df4b738
+2 -2
View File
@@ -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 {