Skip to content

Commit

Permalink
[APP-2235] Verify functionality of isSwappingToTrendingAsset flag (#6378
Browse files Browse the repository at this point in the history
)

* fix: fix tt swapping with trending flag

* fix: actually fix tt trending swap
  • Loading branch information
derHowie authored and ibrahimtaveras00 committed Jan 4, 2025
1 parent 678ff63 commit a193296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/trendingTokens/trendingTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function fetchTrendingTokens({
const trendingTokens: TrendingToken[] = [];

for (const token of response.trendingTokens.data) {
const { uniqueId, address, name, symbol, chainId, decimals, trending, market, icon_url, colors } = token;
const { address, name, symbol, chainId, decimals, trending, market, icon_url, colors } = token;
const { bought_stats } = trending.swap_data;
const highlightedFriends = (bought_stats.farcaster_users || []).reduce((friends, friend) => {
const { username, pfp_url } = friend;
Expand All @@ -81,7 +81,7 @@ async function fetchTrendingTokens({
}, [] as FarcasterUser[]);

trendingTokens.push({
uniqueId,
uniqueId: `${token.address}_${token.chainId}`,
chainId: chainId as ChainId,
address,
name,
Expand Down

0 comments on commit a193296

Please sign in to comment.