From 50bd559623fc3c7560645f9246d40b34d5b131da Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 5 Feb 2016 14:37:04 -0800 Subject: [PATCH] fix(tray): Fix accidental conversion to NaN --- internal_packages/system-tray/lib/tray-store.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_packages/system-tray/lib/tray-store.es6 b/internal_packages/system-tray/lib/tray-store.es6 index a069b551d..986a76e11 100644 --- a/internal_packages/system-tray/lib/tray-store.es6 +++ b/internal_packages/system-tray/lib/tray-store.es6 @@ -47,7 +47,7 @@ class TrayStore extends NylasStore { this._platform = platform; 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._menu = _buildMenu(); this._icon = this._getIconImg(); @@ -91,7 +91,7 @@ class TrayStore extends NylasStore { } _onUnreadCountChanged() { - this._unreadString = +(UnreadBadgeStore.count()).toLocaleString(); + this._unreadString = (+UnreadBadgeStore.count()).toLocaleString(); this._icon = this._getIconImg(); this.trigger(); }