delete console.logs

This commit is contained in:
Tim Gröger 2020-06-10 15:53:37 +02:00
parent 62756d3cec
commit 084caa34c3
1 changed files with 0 additions and 5 deletions

View File

@ -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) {