Skip to content
Snippets Groups Projects
Commit c23228f1 authored by Tae Hoon's avatar Tae Hoon
Browse files

fix error breaking logout flow

parent 268e9ce5
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!846Fix broken token authentication
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment