add validation for ranking

This commit is contained in:
Kukks 2019-01-10 14:43:47 +01:00
parent 9f4226bf0f
commit 89bb6d1268

View file

@ -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)
{