aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-08-22 15:51:03 +0300
committerHenry Jameson <me@hjkos.com>2018-08-22 15:51:03 +0300
commit13acdc4a00f7c4e8487de0c95fe69ff110f13e6e (patch)
tree1e7e70320677839f8463688067384f7a9ec7614a /src
parenta196c3551a1a44660c2f9c4ee940bb988782e929 (diff)
fixed error not displaying for 500 error.
Diffstat (limited to 'src')
-rw-r--r--src/services/notifications_fetcher/notifications_fetcher.service.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js
index 74a4bcda..1480cded 100644
--- a/src/services/notifications_fetcher/notifications_fetcher.service.js
+++ b/src/services/notifications_fetcher/notifications_fetcher.service.js
@@ -25,6 +25,7 @@ const fetchAndUpdate = ({store, credentials, older = false}) => {
.then((notifications) => {
update({store, notifications, older})
}, () => store.dispatch('setNotificationsError', { value: true }))
+ .catch(() => store.dispatch('setNotificationsError', { value: true }))
}
const startFetching = ({credentials, store}) => {