Skip to content

Commit

Permalink
Minor fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Mar 5, 2025
1 parent 436d398 commit 3f96a17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions BTCPayApp.UI/Pages/Lightning/ChannelsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@
});

var unconnected = peerInfos.Keys
.Where(peer => connected.All(p => !string.Equals(p.NodeId, peer, StringComparison.InvariantCultureIgnoreCase)))
.Select(peer =>
.Where(nodeId => connected.All(p => !string.Equals(p.NodeId, nodeId, StringComparison.InvariantCultureIgnoreCase)))
.Select(nodeId =>
{
var remembered = peerInfos.TryGetValue(peer, out var peerConfig);
var remembered = peerInfos.TryGetValue(nodeId, out var peerConfig);
return new LightningPeerModel
{
NodeId = peer,
NodeId = nodeId,
Socket = peerConfig?.Endpoint?.ToEndpointString(),
Connected = false,
Remembered = remembered,
Expand Down
3 changes: 3 additions & 0 deletions BTCPayApp.UI/Pages/Lightning/SettingsPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@
<button class="btn btn-outline-danger" type="button" @onclick="LightningNodeManager.CleanseTask">DESTROY</button>
}
</div>
}
@if (State.Value.LightningNodeState is LightningNodeState.Loaded)
{
<div class="box">
<ul class="list-group list-group-flush list-group-links">
<li class="list-group-item">
Expand Down
1 change: 0 additions & 1 deletion BTCPayApp.UI/StartupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public static class StartupExtensions
public static IServiceCollection AddBTCPayAppUIServices(this IServiceCollection serviceCollection)
{
serviceCollection.AddOptions();

serviceCollection.AddSingleton<DisplayFormatter>();
serviceCollection.AddBlazorDragDrop();
serviceCollection.AddCascadingAuthenticationState();
Expand Down

0 comments on commit 3f96a17

Please sign in to comment.