We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63c5bfd + c9f2662 commit 4107ab2Copy full SHA for 4107ab2
1 file changed
src/NotificationSystem.jsx
@@ -73,13 +73,13 @@ var NotificationSystem = createReactClass({
73
return true;
74
});
75
76
- if (notification && notification.onRemove) {
77
- notification.onRemove(notification);
78
- }
79
-
80
if (this._isMounted) {
81
this.setState({ notifications: notifications });
82
}
+
+ if (notification && notification.onRemove) {
+ notification.onRemove(notification);
+ }
83
},
84
85
getInitialState: function() {
0 commit comments