fix(tray): Fix accidental conversion to NaN

This commit is contained in:
Ben Gotow 2016-02-05 14:37:04 -08:00
parent affafc69a8
commit 205f3ba6ab

View file

@ -47,7 +47,7 @@ class TrayStore extends NylasStore {
this._platform = platform; this._platform = platform;
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH); this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
this._unreadString = +(UnreadBadgeStore.count()).toLocaleString(); this._unreadString = (+UnreadBadgeStore.count()).toLocaleString();
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH); this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
this._menu = _buildMenu(); this._menu = _buildMenu();
this._icon = this._getIconImg(); this._icon = this._getIconImg();
@ -91,7 +91,7 @@ class TrayStore extends NylasStore {
} }
_onUnreadCountChanged() { _onUnreadCountChanged() {
this._unreadString = +(UnreadBadgeStore.count()).toLocaleString(); this._unreadString = (+UnreadBadgeStore.count()).toLocaleString();
this._icon = this._getIconImg(); this._icon = this._getIconImg();
this.trigger(); this.trigger();
} }