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,8 +195,10 @@ class SocketProvider extends React.Component<Props> {
}
componentWillUnmount() {
if (this.socket) {
this.socket.disconnect();
}
}
render() {
return (