Skip to content

Commit 5cd344e

Browse files
committed
Change ternary for all-read class
1 parent c4fb567 commit 5cd344e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/components/notifications.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ var Notifications = React.createClass({
9191
})
9292
);
9393
} else {
94+
notificationsEmpty = true;
9495
errors = (
9596
<div>
9697
<h3>No Search Results.</h3>
@@ -106,7 +107,7 @@ var Notifications = React.createClass({
106107
<div className={
107108
wrapperClass +
108109
(this.state.errors ? ' errorred' : '') +
109-
(notificationsEmpty || !notifications.length ? ' all-read' : '')
110+
(notificationsEmpty ? ' all-read' : '')
110111
}>
111112
<Loading className='loading-container' shouldShow={this.state.loading}>
112113
<div className='loading-text'>working on it</div>

0 commit comments

Comments
 (0)