fix error breaking logout flow
This commit is contained in:
parent
268e9ce504
commit
c23228f196
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const chat = {
|
|||
},
|
||||
actions: {
|
||||
disconnectFromChat (store) {
|
||||
store.state.socket.disconnect()
|
||||
store.state.socket && store.state.socket.disconnect()
|
||||
},
|
||||
initializeChat (store, socket) {
|
||||
const channel = socket.channel('chat:public')
|
||||
|
|
Loading…
Reference in a new issue