mirror of https://github.com/vector-im/riot-web
This check shouldn't be here with the ||
parent
24602119c5
commit
f595f6f141
|
@ -119,9 +119,7 @@ module.exports = React.createClass({
|
|||
var emailPusherPromise;
|
||||
if (event.target.checked) {
|
||||
var data = {}
|
||||
if (this.props.brand) {
|
||||
data['brand'] = this.props.brand || 'Vector';
|
||||
}
|
||||
emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);
|
||||
} else {
|
||||
var emailPusher = UserSettingsStore.getEmailPusher(this.state.pushers, address);
|
||||
|
|
Loading…
Reference in New Issue