Skip to content

Commit

Permalink
fix: reserve incentives
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecarpini committed Jan 21, 2024
1 parent 1413d46 commit a364f3c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions apps/web/src/components/ReservesIncentives.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ export const ReservesIncentives: React.FC<Props> = ({ address }) => {

const availableReservesWithBalance = useMemo(
() =>
reservesWithBalance
?.filter((reserve) => reserve.balance !== '0')
.map((reserve) => ({
reserve,
amount: reserve.balance,
amountInUsd: reserve.underlyingBalanceUSD
})) ?? [],
reservesWithBalance.map((reserve) => ({
reserve,
amount: reserve.balance,
amountInUsd: reserve.underlyingBalanceUSD
})) ?? [],
[reservesWithBalance]
);

Expand Down

0 comments on commit a364f3c

Please sign in to comment.