mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
Fix bug on unable to add comment
This commit is contained in:
parent
756b6e9692
commit
8e58fc128d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user