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

View File

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