about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-17 20:28:32 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-17 20:28:32 +0100
commitc468446f4c52b089cfe1507d2ca79f36f39614ef (patch)
tree80137617dfb3a4998a3f8373372b9b374f44ca2b
parentcde0476ca2d3338a0e4a9a480d978d0d61b61998 (diff)
Fix boops?
-rw-r--r--app/assets/javascripts/components/actions/notifications.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx
index 8688267f4..1b19808f0 100644
--- a/app/assets/javascripts/components/actions/notifications.jsx
+++ b/app/assets/javascripts/components/actions/notifications.jsx
@@ -24,15 +24,15 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
 
 export function updateNotifications(notification, intlMessages, intlLocale) {
   return (dispatch, getState) => {
-    const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], false);
-    const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], false);
+    const showAlert = getState().getIn(['notifications', 'settings', 'alerts', notification.type], true);
+    const playSound = getState().getIn(['notifications', 'settings', 'sounds', notification.type], true);
 
     dispatch({
       type: NOTIFICATIONS_UPDATE,
       notification,
       account: notification.account,
       status: notification.status,
-      meta: playSound ? { sound: 'boop' } : null
+      meta: playSound ? { sound: 'boop' } : undefined
     });
 
     fetchRelatedRelationships(dispatch, [notification]);