fix: SocketProvider throws error when websockets disabled

This commit is contained in:
Tom Moor
2019-12-15 19:49:47 -08:00
committed by GitHub
parent 6d8216c54e
commit c360d7cd8c

View File

@ -195,7 +195,9 @@ class SocketProvider extends React.Component<Props> {
} }
componentWillUnmount() { componentWillUnmount() {
this.socket.disconnect(); if (this.socket) {
this.socket.disconnect();
}
} }
render() { render() {