From c324fffff64eed5003df1a63ba31604e2c815d48 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Mon, 10 Jun 2024 21:26:11 -0500 Subject: [PATCH 1/2] Remove LSP url from servers --- src/routes/settings/Servers.tsx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/routes/settings/Servers.tsx b/src/routes/settings/Servers.tsx index c43819122..bdcd312b8 100644 --- a/src/routes/settings/Servers.tsx +++ b/src/routes/settings/Servers.tsx @@ -131,26 +131,6 @@ function SettingsStringsEditor(props: { /> )} - - {(field, props) => ( - - )} - Date: Mon, 10 Jun 2024 21:26:37 -0500 Subject: [PATCH 2/2] Trim LSP urls --- src/components/KitchenSink.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/KitchenSink.tsx b/src/components/KitchenSink.tsx index 88833d651..c0302fad1 100644 --- a/src/components/KitchenSink.tsx +++ b/src/components/KitchenSink.tsx @@ -466,11 +466,11 @@ function LSPS(props: { initialSettings: MutinyWalletSettingStrings }) { console.log("values", values); try { await sw.change_lsp( - values.lsp ? values.lsp : undefined, + values.lsp ? values.lsp.trim() : undefined, values.lsps_connection_string - ? values.lsps_connection_string + ? values.lsps_connection_string.trim() : undefined, - values.lsps_token ? values.lsps_token : undefined + values.lsps_token ? values.lsps_token.trim() : undefined ); await setSettings(values); window.location.reload();