mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +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...
|
// For some reason asp.net consider addcomment null instead of empty string...
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
if (addcomment == null && Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
|
||||||
{
|
{
|
||||||
addcomment = string.Empty;
|
addcomment = string.Empty;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user