mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Make validation uniform
This commit is contained in:
parent
ca00caa4a4
commit
77588182b9
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
|||
[Required] public string StoreId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Range(double.Epsilon, double.PositiveInfinity, ErrorMessage = "Please enter a value bigger than zero")]
|
||||
[Range(double.Epsilon, double.PositiveInfinity, ErrorMessage = "Please provide an amount greater than 0")]
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
[Display(Name = "The currency used for payment request. (e.g. BTC, LTC, USD, etc.)")]
|
||||
|
|
Loading…
Add table
Reference in a new issue