Skip to content

Commit

Permalink
fix: unnecessary useEffect dep
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Feb 1, 2024
1 parent f6c08fd commit 6b51f03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const ActionBoxTokens = ({ currentTokenBank, isDialog, setCurrentTokenBan
// new banks
const newBanks = React.useMemo(() => {
return extendedBankInfos.filter((bankInfo) => NEW_BANKS.find((value) => value.equals(bankInfo.info.state.mint)));
}, [extendedBankInfos, searchFilter]);
}, [extendedBankInfos]);

const globalBanks = React.useMemo(() => filteredBanks.filter((bank) => !bank.info.state.isIsolated), [filteredBanks]);
const isolatedBanks = React.useMemo(
Expand Down

0 comments on commit 6b51f03

Please sign in to comment.