Skip to content

Commit

Permalink
Removed redundant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjaak Luthart committed Oct 5, 2017
1 parent 0177fb3 commit 66094cb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lightbox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ class Lightbox extends Component {
</header>
<img style={styles.image} src={image} alt="lightbox" />
</section>
{
open
? <EventListener target="window" onKeyUp={this.handleKeyUp} />
: null
}
<EventListener target="window" onKeyUp={this.handleKeyUp} />
</Overlay>
);
}
Expand Down

0 comments on commit 66094cb

Please sign in to comment.