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:
Hornwitser committed 2021-03-20 02:52:34 +01:00
1 parent f9048d7027
commit 16d2ab1646
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ export default function App(props) {
connector.off("close", onClose);
connector.off("connect", onConnect);
};
}, [props.control]);
}, [token, props.control]);
useEffect(() => {
if (token && !connected) {