Fix error message if rate unavailable

This commit is contained in:
nicolas.dorier 2024-05-21 22:11:03 +09:00
parent 7564c3c2bd
commit faf6b514e6
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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);
}