Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix(Modal): rewrite conditional to remove Jest warning
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Jun 19, 2018
1 parent d7f70f0 commit ca8b154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class Modal extends Component {
className={modalClasses}
role="presentation"
tabIndex={-1}
onTransitionEnd={this.props.open && this.handleTransitionEnd}
onTransitionEnd={this.props.open ? this.handleTransitionEnd : undefined}
ref={outerModal => {
this.outerModal = outerModal;
}}>
Expand Down

0 comments on commit ca8b154

Please sign in to comment.