Cleanup connection logic

This commit is contained in:
Sacha Weatherstone committed 2022-03-07 20:10:54 +11:00
1 parent 4513a5b5f3
commit 1202345d69
5 files changed
+70 -87

No files matched your search

+3
View File
@@ -36,6 +36,9 @@ export const HTTP = ({ connecting }: HTTPProps): JSX.Element => {
});
const onSubmit = handleSubmit(async (data) => {
if (data.ip) {
localStorage.setItem('connectionUrl', data.ip);
}
dispatch(
setConnectionParams({
type: connType.HTTP,