From 6dbc4abdc590440afa8e85b0274a81a38fe9a9d7 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 31 Aug 2017 17:48:07 -0400 Subject: [PATCH] subtract admin notifications from social count fallout from #1487 --- src/views/messages/presentation.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/messages/presentation.jsx b/src/views/messages/presentation.jsx index 60eb6ca2c..141f4896e 100644 --- a/src/views/messages/presentation.jsx +++ b/src/views/messages/presentation.jsx @@ -224,6 +224,7 @@ var MessagesPresentation = injectIntl(React.createClass({ if (Object.keys(this.props.scratcherInvite).length > 0) { adminMessageLength = adminMessageLength + 1; } + var numNewSocialMessages = this.props.numNewMessages - adminMessageLength; return (
@@ -308,7 +309,7 @@ var MessagesPresentation = injectIntl(React.createClass({