mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
fix build
This commit is contained in:
@@ -309,7 +309,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
divisibility++;
|
||||
}
|
||||
if(divisibility != provider.CurrencyDecimalDigits)
|
||||
if (divisibility != provider.CurrencyDecimalDigits)
|
||||
{
|
||||
provider = (NumberFormatInfo)provider.Clone();
|
||||
provider.CurrencyDecimalDigits = divisibility;
|
||||
@@ -319,13 +319,12 @@ namespace BTCPayServer.Controllers
|
||||
private string OrderAmountFiat(ProductInformation productInformation)
|
||||
{
|
||||
// check if invoice source currency is crypto... if it is there is no "order amount in fiat"
|
||||
foreach (var net in _NetworkProvider.GetAll())
|
||||
if (_NetworkProvider.GetNetwork(productInformation.Currency) != null)
|
||||
{
|
||||
if (net.CryptoCode == productInformation.Currency)
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
return FormatCurrency(productInformation.Price, productInformation.Currency);
|
||||
return FormatCurrency(productInformation.Price, productInformation.Currency, _CurrencyNameTable);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
||||
Reference in New Issue
Block a user