Skip to content

Commit

Permalink
Update chat
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpierce committed Feb 11, 2024
1 parent d2cf1bc commit f7f1924
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ export default {
this.$store.dispatch('setUsername', this.newUser)
localStorage.setItem('ITR_USER', this.newUser)
this.newUser = null
setTimeout(() => {
this.scrollToBottom()
this.newUser = null
}, 1000)
},
Expand All @@ -157,7 +156,7 @@ export default {
},
logout() {
this.$store.dispatch('setUsername', null)
this.$store.dispatch('logoutUser', this.chat.username)
localStorage.removeItem('ITR_USER')
}
},
Expand Down

0 comments on commit f7f1924

Please sign in to comment.