mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
add validation for ranking
This commit is contained in:
parent
9f4226bf0f
commit
89bb6d1268
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ namespace BTCPayServer.Controllers
|
|||
{
|
||||
ModelState.AddModelError(nameof(vm.ResetEveryAmount), "You must reset the goal at a minimum of 1 ");
|
||||
}
|
||||
|
||||
if (vm.DisplayPerksRanking && !vm.SortPerksByPopularity)
|
||||
{
|
||||
ModelState.AddModelError(nameof(vm.DisplayPerksRanking), "You must sort by popularity in order to display ranking.");
|
||||
}
|
||||
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue