From f7bf77ebd4257c7f7f0b3cb91d862ef218f9bd7e Mon Sep 17 00:00:00 2001 From: keyan Date: Mon, 31 Jul 2023 12:47:41 -0500 Subject: [PATCH] fix BigInt Int mix in satistics --- 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 d4e762ee..2936f8ff 100644 --- a/api/resolvers/wallet.js +++ b/api/resolvers/wallet.js @@ -166,7 +166,7 @@ export default { } switch (f.type) { case 'withdrawal': - f.msats = (-1 * f.msats) - f.msatsFee + f.msats = (-1 * Number(f.msats)) - Number(f.msatsFee) break case 'spent': f.msats *= -1