mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Fix UriAttribute bug, and currency formatting crash
This commit is contained in:
@@ -295,7 +295,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
public static string FormatCurrency(decimal price, string currency, CurrencyNameTable currencies)
|
||||
{
|
||||
var provider = ((CultureInfo)currencies.GetCurrencyProvider(currency)).NumberFormat;
|
||||
var provider = currencies.GetNumberFormatInfo(currency);
|
||||
var currencyData = currencies.GetCurrencyData(currency);
|
||||
var divisibility = currencyData.Divisibility;
|
||||
while (true)
|
||||
|
||||
Reference in New Issue
Block a user