From 84aab42ffad3cc65ff008d1508937f3cf915c736 Mon Sep 17 00:00:00 2001 From: ekzyis <27162016+ekzyis@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:40:57 +0200 Subject: [PATCH] Fix Err undefined --- api/resolvers/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })