fix: sub-wallet total spent in subwallet page ui (#2106)

This commit is contained in:
Roland 2026-03-02 10:53:10 +07:00 committed by GitHub
parent 4cb794b332
commit b984d7a913
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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