From af913463289d27155993e1621e47ee9a57681079 Mon Sep 17 00:00:00 2001
From: hakui <hakui@airmail.cc>
Date: Sat, 18 Feb 2017 17:38:56 -0600
Subject: [PATCH] changed to if-else to save on one line

---
 src/components/notifications/notifications.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 3f9fe3b4b..e872a2e5e 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -25,8 +25,8 @@ const Notifications = {
   },
   watch: {
     unseenCount (count) {
-      this.$store.dispatch('setPageTitle', `(${count})`)
-      if (count==0) this.$store.dispatch('setPageTitle', '')
+      if (count>0) this.$store.dispatch('setPageTitle', `(${count})`)
+      else this.$store.dispatch('setPageTitle', '')
     }
   },
   methods: {
-- 
GitLab