aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/users.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 7e9c656a..ca15924f 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -850,6 +850,7 @@ export default {
{ "content-type": "application/json" },
);
const { vtxos } = await r.json();
+ if (!vtxos?.length) continue;
account.balance = vtxos.reduce(
(a, b) => a + Number.parseInt(b.amount),
0,