diff options
| -rw-r--r-- | routes/users.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts index f564d09f..7e9c656a 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -850,7 +850,10 @@ export default { { "content-type": "application/json" }, ); const { vtxos } = await r.json(); - account.balance = vtxos.reduce((a, b) => a + b.amount, 0); + account.balance = vtxos.reduce( + (a, b) => a + Number.parseInt(b.amount), + 0, + ); } } |
