This check shouldn't be here with the ||
This commit is contained in:
parent
24602119c5
commit
f595f6f141
1 changed files with 1 additions and 3 deletions
|
@ -119,9 +119,7 @@ module.exports = React.createClass({
|
||||||
var emailPusherPromise;
|
var emailPusherPromise;
|
||||||
if (event.target.checked) {
|
if (event.target.checked) {
|
||||||
var data = {}
|
var data = {}
|
||||||
if (this.props.brand) {
|
data['brand'] = this.props.brand || 'Vector';
|
||||||
data['brand'] = this.props.brand || 'Vector';
|
|
||||||
}
|
|
||||||
emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);
|
emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);
|
||||||
} else {
|
} else {
|
||||||
var emailPusher = UserSettingsStore.getEmailPusher(this.state.pushers, address);
|
var emailPusher = UserSettingsStore.getEmailPusher(this.state.pushers, address);
|
||||||
|
|
Loading…
Reference in a new issue