avoid malformed invoice amount

This commit is contained in:
Daniel Lugo 2020-11-03 13:12:31 -04:00
parent ca615cd69f
commit 404c8125df

View file

@ -1044,7 +1044,9 @@ const sendSpontaneousPayment = async (
const payment = await sendPaymentV2Invoice({ const payment = await sendPaymentV2Invoice({
feeLimit, feeLimit,
payment_request: orderResponse.response payment_request: orderResponse.response,
// avoid malformed invoice amount
amt: amount.toString()
}) })
if (Utils.successfulHandshakeAlreadyExists(to)) { if (Utils.successfulHandshakeAlreadyExists(to)) {