Skip to content

Commit

Permalink
Fixing undefined includes (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Sep 9, 2024
1 parent dd464e2 commit e7655bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earn/src/components/markets/supply/SupplyTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default function SupplyTable(props: SupplyTableProps) {
onClick={() => {
const hasBadDebt =
row.suppliedBalance > row.withdrawableBalance &&
ALOE_II_BAD_DEBT_LENDERS[activeChain.id].includes(row.kitty.address.toLowerCase());
ALOE_II_BAD_DEBT_LENDERS[activeChain.id]?.includes(row.kitty.address.toLowerCase());
setSelectedRow({ row, action: hasBadDebt ? 'recover' : 'withdraw' });
}}
disabled={row.suppliedBalance === 0}
Expand Down

0 comments on commit e7655bb

Please sign in to comment.