react-notifier-system
Advanced tools
@@ -33,5 +33,6 @@ 'use strict'; | ||
| // update notification if already created | ||
| var foundNotification = this.state.notifications.find(function (val) { | ||
| return val.id === preparedNotification.id; | ||
| }); | ||
| var foundNotification = notification.id ? this.state.notifications.find(function (val) { | ||
| return val.id === notification.id; | ||
| }) : null; | ||
| if (foundNotification) { | ||
@@ -38,0 +39,0 @@ Object.assign(foundNotification, preparedNotification); |
+1
-1
| { | ||
| "name": "react-notifier-system", | ||
| "version": "0.0.6", | ||
| "version": "0.0.7", | ||
| "repository": "sheikhG1900/react-notifier-system", | ||
@@ -5,0 +5,0 @@ "author": "Sheikh Abdul Wahid Ahmed @sheikhG1900", |
8149
0.22%