fix total interest value

This commit is contained in:
saml33 2023-02-02 10:04:35 +11:00
parent a35dd6b583
commit d956899781
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ const AccountPage = () => {
const interestTotalValue = useMemo(() => {
if (totalInterestData.length) {
return totalInterestData.reduce(
(a, c) => a + c.borrow_interest_usd + c.deposit_interest_usd,
(a, c) => a + c.borrow_interest_usd * -1 + c.deposit_interest_usd,
0
)
}