Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Commit

Permalink
Fix constructor for slow browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Leszek Pawlak authored and Patrick Burtchaell committed Aug 7, 2016
1 parent 37ded52 commit 02b982b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Notification extends Component {
this.getTitleStyle = this.getTitleStyle.bind(this);
this.handleClick = this.handleClick.bind(this);

if (this.props.onDismiss && this.props.isActive) {
if (props.onDismiss && props.isActive) {
this.dismissTimeout = setTimeout(
this.props.onDismiss,
this.props.dismissAfter
props.onDismiss,
props.dismissAfter
);
}
}
Expand Down

0 comments on commit 02b982b

Please sign in to comment.