Fix bug: Can't remove comments to transaction

This commit is contained in:
nicolas.dorier
2019-08-03 00:55:27 +09:00
parent d79fda166f
commit 21d555ee6b

View File

@@ -100,6 +100,10 @@ namespace BTCPayServer.Controllers
WalletId walletId, string transactionId, string addlabel = null, string addlabelclick = null, string addcomment = null, string removelabel = null)
{
addlabel = addlabel ?? addlabelclick;
if (Request?.Form?.TryGetValue(nameof(addcomment), out _) is true)
{
addcomment = string.Empty;
}
DerivationSchemeSettings paymentMethod = await GetDerivationSchemeSettings(walletId);
if (paymentMethod == null)
return NotFound();