diff --git a/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj b/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj
index 6c5b2d3..883d92d 100644
--- a/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj
+++ b/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj
@@ -11,7 +11,7 @@
LN Prism
Automated value splits for lightning.
- 1.1.2
+ 1.1.3
diff --git a/Plugins/BTCPayServer.Plugins.Prism/Components/PrismEdit.razor b/Plugins/BTCPayServer.Plugins.Prism/Components/PrismEdit.razor
index 023b5b8..5c0ad9a 100644
--- a/Plugins/BTCPayServer.Plugins.Prism/Components/PrismEdit.razor
+++ b/Plugins/BTCPayServer.Plugins.Prism/Components/PrismEdit.razor
@@ -16,6 +16,7 @@
@inject LinkGenerator LinkGenerator
@inject IHttpContextAccessor HttpContextAccessor
@inject ILogger Logger
+@implements IDisposable
@if (Loading)
{
@@ -114,9 +115,6 @@ else
{
if (firstRender)
{
- try
- {
- Logger.LogDebug("Loading prism settings");
PayoutProcessorLink = LinkGenerator.GetUriByAction(HttpContextAccessor.HttpContext, "ConfigureStorePayoutProcessors", "UIPayoutProcessors", new {StoreId});
LNAddressLink = LinkGenerator.GetUriByAction(HttpContextAccessor.HttpContext, "EditLightningAddress", "UILNURL", new {StoreId});
@@ -142,7 +140,6 @@ else
await Task.WhenAll(tasks);
Settings = await fetchSettings;
Users = await fetchLnAddresses;
- Logger.LogInformation(JObject.FromObject(Settings).ToString());
EditContext = new EditContext(Settings);
MessageStore = new ValidationMessageStore(EditContext);
EditContext.OnValidationRequested += Validate;
@@ -151,11 +148,7 @@ else
NoPayoutProcessors = PayoutProcessorFactories.Any(factory => factory.GetSupportedPaymentMethods().Contains(pmi)) && !(await fetchProcessors).Any();
Loading = false;
await InvokeAsync(StateHasChanged);
- }
- catch (Exception e)
- {
- Logger.LogError(e, "Error while loading sat breaker settings");
- }
+
}
await base.OnAfterRenderAsync(firstRender);
}
@@ -305,4 +298,11 @@ else
}
}
+ public void Dispose()
+ {
+ EditContext.OnValidationRequested -= Validate;
+ EditContext.OnFieldChanged -= FieldChanged;
+ SatBreaker.PrismUpdated -= SatBreakerOnPrismUpdated;
+ }
+
}
\ No newline at end of file