fix(default-client): Set initial state to fix React warning

This commit is contained in:
Ben Gotow 2016-04-15 14:30:13 -04:00
parent 93131a11c7
commit 40ca758766

View file

@ -6,7 +6,7 @@ class DefaultMailClientItem extends React.Component {
constructor() { constructor() {
super(); super();
this.state = {}; this.state = {defaultClient: false};
this._services = new LaunchServices(); this._services = new LaunchServices();
if (this._services.available()) { if (this._services.available()) {
this._services.isRegisteredForURLScheme('mailto', (registered) => { this._services.isRegisteredForURLScheme('mailto', (registered) => {