@reef-knot/core-react 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,8 @@ const useDisconnect = () => {
|
|
|
33
33
|
// It doesn't make sense to offer a user the ability to disconnect if the user is not connected yet,
|
|
34
34
|
// or if the user was connected automatically
|
|
35
35
|
const autoConnectOnlyConnectors = getAutoConnectOnlyConnectors();
|
|
36
|
-
|
|
36
|
+
const isConnectorNotAutoConnectOnly = autoConnectOnlyConnectors.every(c => c.id !== (connector === null || connector === void 0 ? void 0 : connector.id));
|
|
37
|
+
return isConnected && isConnectorNotAutoConnectOnly;
|
|
37
38
|
};
|
|
38
39
|
return {
|
|
39
40
|
disconnect: checkIfDisconnectMakesSense() ? disconnect : undefined,
|