fix: SocketProvider throws error when websockets disabled
This commit is contained in:
@ -195,7 +195,9 @@ class SocketProvider extends React.Component<Props> {
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.socket.disconnect();
|
||||
if (this.socket) {
|
||||
this.socket.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Reference in New Issue
Block a user