From df3ffdd9056ef7ebe451eaed4beaeafe20257818 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 19 Feb 2017 12:19:47 +0100 Subject: [PATCH] Follow style guide (https://github.com/feross/standard) --- src/components/notifications/notifications.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index e872a2e5..d6a6bdb5 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -25,8 +25,11 @@ const Notifications = { }, watch: { unseenCount (count) { - if (count>0) this.$store.dispatch('setPageTitle', `(${count})`) - else this.$store.dispatch('setPageTitle', '') + if (count > 0) { + this.$store.dispatch('setPageTitle', `(${count})`) + } else { + this.$store.dispatch('setPageTitle', '') + } } }, methods: {