diff options
| author | taehoon <th.dev91@gmail.com> | 2019-06-19 23:12:25 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-06-20 11:48:30 -0400 |
| commit | c23228f1967547e7df1462efa7b3bcc1a9a96319 (patch) | |
| tree | be1ab9e4e61dce7116d7745a270a44ecf398f45c | |
| parent | 268e9ce5042cc89707204153b64f04f1c1b9e0e0 (diff) | |
fix error breaking logout flow
| -rw-r--r-- | src/modules/chat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/chat.js b/src/modules/chat.js index 2804e577..4d8d6699 100644 --- a/src/modules/chat.js +++ b/src/modules/chat.js @@ -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') |
