diff --git a/src/components/views/settings/Notifications.js b/src/components/views/settings/Notifications.js index 03bb4765ed..3b6321dc6f 100644 --- a/src/components/views/settings/Notifications.js +++ b/src/components/views/settings/Notifications.js @@ -132,9 +132,9 @@ module.exports = React.createClass({ }); }, - onEnableEmailNotificationsChange: function(address, event) { + onEnableEmailNotificationsChange: function(address, checked) { let emailPusherPromise; - if (event.target.checked) { + if (checked) { const data = {}; data['brand'] = SdkConfig.get().brand || 'Riot'; emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);