Fix bug on unable to add comment

This commit is contained in:
nicolas.dorier 2019-08-03 23:02:15 +09:00
parent 756b6e9692
commit 8e58fc128d
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -111,7 +111,7 @@ namespace BTCPayServer.Controllers
// For some reason asp.net consider addcomment null instead of empty string...
try
{
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
if (addcomment == null && Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
{
addcomment = string.Empty;
}