remove error message on no more following

This commit is contained in:
Brenden Bice 2019-04-12 23:09:05 -04:00
parent fa33e3ec58
commit 2ae0507575
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ export const mutations = {
user.friends.push(friend)
}
})
user.lastFriendId = last(friends).id
user.lastFriendId = friends.length ? last(friends).id : last(user.friends).id
},
addFollowers (state, { id, followers }) {
const user = state.usersObject[id]