diff --git a/extensions/CoreWidgetProvider/CoreWidgetProvider.csproj b/extensions/CoreWidgetProvider/CoreWidgetProvider.csproj index dc95e0351f..aa114bea22 100644 --- a/extensions/CoreWidgetProvider/CoreWidgetProvider.csproj +++ b/extensions/CoreWidgetProvider/CoreWidgetProvider.csproj @@ -25,7 +25,6 @@ - diff --git a/extensions/CoreWidgetProvider/Widgets/SSHWalletWidget.cs b/extensions/CoreWidgetProvider/Widgets/SSHWalletWidget.cs index 1df6b243c7..ece45d1e3e 100644 --- a/extensions/CoreWidgetProvider/Widgets/SSHWalletWidget.cs +++ b/extensions/CoreWidgetProvider/Widgets/SSHWalletWidget.cs @@ -148,8 +148,8 @@ public override void OnCustomizationRequested(WidgetCustomizationRequestedArgs c // { "data": "hostname" } private void HandleConnect(WidgetActionInvokedArgs args) { - var jsonObject = JObject.Parse(args.Data); - var host = jsonObject["data"]?.ToString(); + var jsonObject = JsonDocument.Parse(args.Data).RootElement; + var host = jsonObject.GetProperty("data").GetString(); if (string.IsNullOrEmpty(host)) {