Fix toggle for email notifications
The function doesn't receive an event, it receives a boolean. Fixes https://github.com/vector-im/riot-web/issues/8837pull/21833/head
							parent
							
								
									86c49d5807
								
							
						
					
					
						commit
						ee8a027b4c
					
				|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Travis Ralston
						Travis Ralston