Cleanup connection logic

This commit is contained in:
Sacha Weatherstone
2022-03-07 20:10:54 +11:00
parent 4513a5b5f3
commit 1202345d69
5 changed files with 70 additions and 87 deletions
+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,