mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Remove misleading error message (Fix #1377)
This commit is contained in:
parent
1edd19f403
commit
c598a1827f
1 changed files with 3 additions and 1 deletions
|
@ -154,6 +154,7 @@ namespace BTCPayServer.Controllers
|
||||||
var rateRules = storeBlob.GetRateRules(_NetworkProvider);
|
var rateRules = storeBlob.GetRateRules(_NetworkProvider);
|
||||||
var fetchingByCurrencyPair = _RateProvider.FetchRates(currencyPairsToFetch, rateRules, cancellationToken);
|
var fetchingByCurrencyPair = _RateProvider.FetchRates(currencyPairsToFetch, rateRules, cancellationToken);
|
||||||
var fetchingAll = WhenAllFetched(logs, fetchingByCurrencyPair);
|
var fetchingAll = WhenAllFetched(logs, fetchingByCurrencyPair);
|
||||||
|
|
||||||
var supportedPaymentMethods = store.GetSupportedPaymentMethods(_NetworkProvider)
|
var supportedPaymentMethods = store.GetSupportedPaymentMethods(_NetworkProvider)
|
||||||
.Where(s => !excludeFilter.Match(s.PaymentId) && _paymentMethodHandlerDictionary.Support(s.PaymentId))
|
.Where(s => !excludeFilter.Match(s.PaymentId) && _paymentMethodHandlerDictionary.Support(s.PaymentId))
|
||||||
.Select(c =>
|
.Select(c =>
|
||||||
|
@ -179,7 +180,8 @@ namespace BTCPayServer.Controllers
|
||||||
if (supported.Count == 0)
|
if (supported.Count == 0)
|
||||||
{
|
{
|
||||||
StringBuilder errors = new StringBuilder();
|
StringBuilder errors = new StringBuilder();
|
||||||
errors.AppendLine("Warning: No wallet has been linked to your BTCPay Store. See the following link for more information on how to connect your store and wallet. (https://docs.btcpayserver.org/getting-started/connectwallet)");
|
if (!store.GetSupportedPaymentMethods(_NetworkProvider).Any())
|
||||||
|
errors.AppendLine("Warning: No wallet has been linked to your BTCPay Store. See the following link for more information on how to connect your store and wallet. (https://docs.btcpayserver.org/getting-started/connectwallet)");
|
||||||
foreach (var error in logs.ToList())
|
foreach (var error in logs.ToList())
|
||||||
{
|
{
|
||||||
errors.AppendLine(error.ToString());
|
errors.AppendLine(error.ToString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue