Do not attempt to reconnect to cloud when username is changed to empty string
This commit is contained in:
1 file changed
+3
-1
@@ -55,7 +55,9 @@ const cloudManagerHOC = function (WrappedComponent) {
|
||||
// tw: handle cases where we should explicitly close and reconnect() in the same update
|
||||
if (this.shouldReconnect(this.props, prevProps)) {
|
||||
this.disconnectFromCloud();
|
||||
this.connectToCloud();
|
||||
if (this.shouldConnect(this.props)) {
|
||||
this.connectToCloud();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user