mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
fix: sub-wallet total spent in subwallet page ui (#2106)
This commit is contained in:
parent
4cb794b332
commit
b984d7a913
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export function AppUsage({ app }: { app: App }) {
|
|||
|
||||
const totalSpent = allTransactions
|
||||
.filter((tx) => tx.type === "outgoing" && tx.state === "settled")
|
||||
.map((tx) => Math.floor(tx.amount / 1000))
|
||||
.map((tx) => Math.floor((tx.amount + tx.feesPaid) / 1000))
|
||||
.reduce((a, b) => a + b, 0);
|
||||
|
||||
const totalReceived = allTransactions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue