When creating a new apps, the default currency of the store should be used

This commit is contained in:
nicolas.dorier
2021-10-25 16:54:36 +09:00
parent 951bfeefb1
commit a73383cd87
7 changed files with 50 additions and 23 deletions

View File

@@ -52,10 +52,9 @@ namespace BTCPayServer.Models.AppViewModels
[Display(Name = "End date")]
public DateTime? EndDate { get; set; }
[Required]
[MaxLength(5)]
[Display(Name = "Primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
public string TargetCurrency { get; set; } = "BTC";
public string TargetCurrency { get; set; }
[Display(Name = "Set a target amount")]
[Range(0, double.PositiveInfinity)]