Skip to content

Commit

Permalink
fix: portfolio search update (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolova-an authored Jun 27, 2024
1 parent 3b3b7a4 commit 15e9983
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ sample({
});

sample({
clock: queryChanged,
source: $activeTokensWithBalance,
fn: (activeTokensWithBalance, query) => {
clock: [$activeTokensWithBalance, queryChanged],
source: { activeTokensWithBalance: $activeTokensWithBalance, query: $query },
fn: ({ activeTokensWithBalance, query }) => {
return activeTokensWithBalance.reduce<AssetByChains[]>((acc, token) => {
const filteredChains = token.chains.filter((chain) => {
const hasSymbol = includes(chain.assetSymbol, query);
Expand Down

0 comments on commit 15e9983

Please sign in to comment.