API: Fix open channel validation condition (#2054)

This commit is contained in:
Dennis Reimann 2020-11-06 16:52:58 +01:00 committed by GitHub
parent 0bb0a38649
commit eef729b5f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ namespace BTCPayServer.Controllers.GreenField
ModelState.AddModelError(nameof(request.FeeRate), "FeeRate must be more than 0");
}
if (ModelState.IsValid)
if (!ModelState.IsValid)
{
return this.CreateValidationError(ModelState);
}