Commit c23228f1 authored by Tae Hoon's avatar Tae Hoon

fix error breaking logout flow

parent 268e9ce5
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment