mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Fix logging in not saving token
Fix regression in login logic causing the token to be saved as null instead of the real value.
This commit is contained in:
1 parent
f9048d7027
commit
16d2ab1646
1 file changed
+1
-1
@@ -60,7 +60,7 @@ export default function App(props) {
|
|||||||
connector.off("close", onClose);
|
connector.off("close", onClose);
|
||||||
connector.off("connect", onConnect);
|
connector.off("connect", onConnect);
|
||||||
};
|
};
|
||||||
}, [props.control]);
|
}, [token, props.control]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (token && !connected) {
|
if (token && !connected) {
|
||||||
|
|||||||
Reference in new issue
Block a user