better error message with 0 invoice
This commit is contained in:
parent
f7d3f281b8
commit
4d8ff46574
@ -268,7 +268,7 @@ async function createWithdrawal (parent, { invoice, maxFee }, { me, models, lnd
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!decoded.mtokens || Number(decoded.mtokens) <= 0) {
|
if (!decoded.mtokens || Number(decoded.mtokens) <= 0) {
|
||||||
throw new UserInputError('you must specify amount')
|
throw new UserInputError('your invoice must specify an amount')
|
||||||
}
|
}
|
||||||
|
|
||||||
const msatsFee = Number(maxFee) * 1000
|
const msatsFee = Number(maxFee) * 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user