This commit is contained in:
Kukks
2021-10-15 11:02:38 +02:00
committed by Andrew Camilleri
parent 514417e888
commit 5176eaf4ba

View File

@@ -353,7 +353,7 @@ namespace BTCPayServer.Controllers
return NotFound("Please provide an amount greater than 0"); return NotFound("Please provide an amount greater than 0");
} }
price = null; price = request.Amount;
} }
if (!isAdmin && (settings.EnforceTargetAmount && info.TargetAmount.HasValue && price > if (!isAdmin && (settings.EnforceTargetAmount && info.TargetAmount.HasValue && price >