diff --git a/api/resolvers/wallet.js b/api/resolvers/wallet.js index b6430cf45..b64a669f4 100644 --- a/api/resolvers/wallet.js +++ b/api/resolvers/wallet.js @@ -314,7 +314,7 @@ export default { } if (decoded.num_msat !== milliamount) { - throw new Err('invoice has incorrect amount') + throw new Error('invoice has incorrect amount') } // take pr and createWithdrawl return await createWithdrawal(parent, { invoice: res2.pr, maxFee }, { me, models, lnd })