Fix visual bug when user clicks on "Create refund" without selecting an option (#3624)

* Add missing refund option validation error element

* Add missing hidden inputs for text elements

* Move validation element above button

* Update validation error message
This commit is contained in:
Umar Bolatov
2022-04-11 01:53:52 -07:00
committed by GitHub
parent c9f0988b95
commit fe6b7dc1e3
2 changed files with 8 additions and 1 deletions

View File

@@ -311,7 +311,7 @@ namespace BTCPayServer.Controllers
model.RefundStep = RefundSteps.SelectCustomAmount;
return View(model);
default:
ModelState.AddModelError(nameof(model.SelectedRefundOption), "Invalid choice");
ModelState.AddModelError(nameof(model.SelectedRefundOption), "Please select an option before proceeding");
return View(model);
}