From 77df9deae7f4e8a01c2e49bef6c1b595ee7c408d Mon Sep 17 00:00:00 2001 From: benthecarman Date: Mon, 10 Jun 2024 21:26:37 -0500 Subject: [PATCH] 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 88833d65..c0302fad 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();