diff --git a/src/store/modules/barUsers.js b/src/store/modules/barUsers.js index 151d1bb..7130ca8 100644 --- a/src/store/modules/barUsers.js +++ b/src/store/modules/barUsers.js @@ -14,14 +14,12 @@ const state = { const mutations = { setAllUsers: (state, users) => { - console.log(users) state.allUsers = [] state.allUsers = users for (let i = 0; i < state.allUsers.length; i++) { state.allUsers[i].fullName = state.allUsers[i].firstname + ' ' + state.allUsers[i].lastname } - console.log(state.allUsers) }, setUsers: (state, users) => { for (let user in users) { @@ -64,7 +62,6 @@ const mutations = { ) if (data.loading !== undefined) state.users[index].loading = data.loading if (data.last_seen !== undefined) state.users[index].last_seen = data.last_seen - console.log('user', state.users[index]) }, sortUsers: state => { state.users = state.users.sort((a, b) => { @@ -86,9 +83,7 @@ const mutations = { }, addMessage: (state, data) => { var message = null - console.log(data) if (state.messages.length > 0) { - console.log(state.messages[0].user.username, data.user.username) if (state.messages[0].user.username === data.user.username && !data.error) { message = state.messages[0] if ((new Date() - state.messages[0].date) / 1000 < 2) {