Removing rates hint

This commit is contained in:
rockstardev
2020-10-16 15:23:38 -05:00
parent 36269cbed6
commit 543e628a8b
5 changed files with 2 additions and 18 deletions

View File

@@ -210,7 +210,6 @@ namespace BTCPayServer.Controllers
vm.AvailableExchanges = exchanges;
vm.DefaultCurrencyPairs = storeBlob.GetDefaultCurrencyPairString();
vm.ShowScripting = storeBlob.RateScripting;
vm.HintRates = storeBlob.Hints?.Rates == true;
return View(vm);
}
@@ -256,7 +255,6 @@ namespace BTCPayServer.Controllers
blob.PreferredExchange = model.PreferredExchange;
blob.Spread = (decimal)model.Spread / 100.0m;
blob.DefaultCurrencyPairs = currencyPairs;
blob.Hints.Rates = false;
if (!model.ShowScripting)
{
if (!exchanges.Any(provider => provider.Id.Equals(model.PreferredExchange, StringComparison.InvariantCultureIgnoreCase)))
@@ -988,7 +986,7 @@ namespace BTCPayServer.Controllers
public async Task<IActionResult> DismissHint(string id)
{
var blob = CurrentStore.GetStoreBlob();
if (id == "Rates" || id == "Wallet" || id == "Lightning")
if (id == "Wallet" || id == "Lightning")
{
try
{