Skip to content

Commit 055441b

Browse files
authored
bug: toast
1 parent c255bcb commit 055441b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

LDKNodeMonday/Service/Lightning Service/LightningNodeService.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,14 @@ class LightningNodeService {
9292
Constants.Config.LiquiditySourceLsps2.Signet.megalith.nodeId
9393
]
9494
// config.logLevel = .trace
95-
95+
9696
let anchor_cfg = AnchorChannelsConfig(
9797
trustedPeersNoReserve: [
9898
Constants.Config.LiquiditySourceLsps2.Signet.megalith.nodeId
9999
],
100100
perChannelReserveSats: UInt64(0)
101101
)
102102
config.anchorChannelsConfig = .some(anchor_cfg)
103-
104103

105104
let nodeBuilder = Builder.fromConfig(config: config)
106105
nodeBuilder.setChainSourceEsplora(serverUrl: self.server.url, config: nil)

LDKNodeMonday/View/Home/BitcoinView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ struct BitcoinView: View {
9191
hideAfter: 5.0,
9292
animation: .spring,
9393
modifierType: .slide
94-
)
94+
),
95+
onDismiss: {
96+
self.eventService.lastEvent = nil
97+
}
9598
) {
9699
EventItemView(event: eventService.lastEvent, price: viewModel.price)
97100
.padding(.horizontal, 40)

0 commit comments

Comments
 (0)