mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix bug on unable to add comment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user