Skip to content

Commit 732aa2d

Browse files
committed
fix: simplified dependencies to avoid re-renders
1 parent 7099a0f commit 732aa2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/markets/MarketAssetsListMobileItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ export const MarketAssetsListMobileItem = ({ ...reserve }: ReserveWithProtocolIn
7676
useEffect(() => {
7777
if (supplyDisplayApy === undefined) return;
7878
onApyChange(id, 'supply', supplyDisplayApy);
79-
}, [id, onApyChange, supplyDisplayApy]);
79+
}, [id, supplyDisplayApy]);
8080

8181
useEffect(() => {
8282
if (!borrowIncentivizedApy || borrowDisplayApy === undefined) return;
8383
onApyChange(id, 'borrow', borrowDisplayApy);
84-
}, [id, onApyChange, borrowDisplayApy, borrowIncentivizedApy]);
84+
}, [id, borrowDisplayApy, borrowIncentivizedApy]);
8585

8686
return (
8787
<ListMobileItemWrapper

0 commit comments

Comments
 (0)