From d6255c20e62b2df5cf70715c495c5b2ee6f27cc2 Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 31 Oct 2024 13:06:39 +0100 Subject: [PATCH] fix ff 2.0 --- .../BTCPayServer.Plugins.FixedFloat.csproj | 2 +- .../FixedFloat/CheckoutPaymentMethodExtension.cshtml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Plugins/BTCPayServer.Plugins.FixedFloat/BTCPayServer.Plugins.FixedFloat.csproj b/Plugins/BTCPayServer.Plugins.FixedFloat/BTCPayServer.Plugins.FixedFloat.csproj index a763c07..1ae67a6 100644 --- a/Plugins/BTCPayServer.Plugins.FixedFloat/BTCPayServer.Plugins.FixedFloat.csproj +++ b/Plugins/BTCPayServer.Plugins.FixedFloat/BTCPayServer.Plugins.FixedFloat.csproj @@ -9,7 +9,7 @@ FixedFloat Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins. - 1.1.8 + 1.1.9 true diff --git a/Plugins/BTCPayServer.Plugins.FixedFloat/Views/Shared/FixedFloat/CheckoutPaymentMethodExtension.cshtml b/Plugins/BTCPayServer.Plugins.FixedFloat/Views/Shared/FixedFloat/CheckoutPaymentMethodExtension.cshtml index 7b2209e..55d24ef 100644 --- a/Plugins/BTCPayServer.Plugins.FixedFloat/Views/Shared/FixedFloat/CheckoutPaymentMethodExtension.cshtml +++ b/Plugins/BTCPayServer.Plugins.FixedFloat/Views/Shared/FixedFloat/CheckoutPaymentMethodExtension.cshtml @@ -12,9 +12,13 @@ { foreach (var explicitMethod in settings.ExplicitMethods) { - - @FixedFloatSettings.AllowedSendingOptions[explicitMethod] - + if(FixedFloatSettings.AllowedSendingOptions.TryGetValue(explicitMethod, out var explicitMethodValue)) + { + + @explicitMethodValue + + } + } } if (!settings.OnlyShowExplicitMethods || settings.ExplicitMethods?.Any() is not true)