From de170ebdd242997503ab69169645c3d624385576 Mon Sep 17 00:00:00 2001 From: Sasha Sorokin <10401817+Brawaru@users.noreply.github.com> Date: Sat, 26 Nov 2022 23:40:15 +0100 Subject: [PATCH] Fix notifications fetching (#776) --- store/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/user.js b/store/user.js index bd6a71e3..e84d2979 100644 --- a/store/user.js +++ b/store/user.js @@ -57,14 +57,14 @@ export const actions = { async fetchNotifications({ commit, rootState }) { if (rootState.auth.user && rootState.auth.user.id) { try { - const follows = ( + const notifications = ( await this.$axios.get( `user/${rootState.auth.user.id}/notifications`, rootState.auth.headers ) ).data - commit('SET_FOLLOWS', follows) + commit('SET_NOTIFICATIONS', notifications) } catch (err) { console.error(err) }