mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix error message if rate unavailable
This commit is contained in:
parent
7564c3c2bd
commit
faf6b514e6
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ namespace BTCPayServer.Payments
|
|||
var rateResult = await fetching.Value;
|
||||
Logs.Write($"The rating rule is {rateResult.Rule}", InvoiceEventData.EventSeverity.Info);
|
||||
Logs.Write($"The evaluated rating rule is {rateResult.EvaluatedRule}", InvoiceEventData.EventSeverity.Info);
|
||||
if (rateResult is RateResult { BidAsk: var bidAsk })
|
||||
if (rateResult is RateResult { BidAsk: { } bidAsk })
|
||||
{
|
||||
InvoiceEntity.AddRate(fetching.Key, bidAsk.Bid);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue