From df1b1711e2f7b437128993a97efc9249f41efc95 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 23 May 2023 22:46:56 -0700 Subject: fix totals --- routes/payments.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/payments.js b/routes/payments.js index f298379a..6ca9cc60 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -153,6 +153,7 @@ export default { let totals = payments.reduce( (a, b) => ({ + ...a, [b.currency]: { sats: (a[b.currency] ? a[b.currency].sats : 0) + b.amount, fiat: ( -- cgit v1.2.3