Fix tests

This commit is contained in:
nicolas.dorier 2019-07-31 15:40:21 +09:00
parent 717cadc64b
commit 5d6c28c997
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -269,7 +269,7 @@ namespace BTCPayServer.Controllers
handler
.IsPaymentMethodAllowedBasedOnInvoiceAmount(storeBlob, fetchingByCurrencyPair,
paymentMethod.Calculate().Due, supportedPaymentMethod.PaymentId);
if (errorMessage != null)
if (!string.IsNullOrEmpty(errorMessage))
{
logs.Write($"{logPrefix} {errorMessage}");
return null;