Make validation uniform

This commit is contained in:
Kukks 2020-03-17 08:03:12 +01:00 committed by rockstardev
parent ca00caa4a4
commit 77588182b9

View file

@ -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.)")]