fix error breaking logout flow

This commit is contained in:
taehoon 2019-06-19 23:12:25 -04:00
parent 268e9ce504
commit c23228f196

View file

@ -21,7 +21,7 @@ const chat = {
}, },
actions: { actions: {
disconnectFromChat (store) { disconnectFromChat (store) {
store.state.socket.disconnect() store.state.socket && store.state.socket.disconnect()
}, },
initializeChat (store, socket) { initializeChat (store, socket) {
const channel = socket.channel('chat:public') const channel = socket.channel('chat:public')