Commit 5d1377af authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

fix: track token_list_rank (#4857)

parent a75e239f
......@@ -488,12 +488,14 @@ export const LoadedRow = forwardRef((props: LoadedRowProps, ref: ForwardedRef<HT
const delta = token.market?.pricePercentChange?.value
const arrow = getDeltaArrow(delta)
const formattedDelta = formatDelta(delta)
const rank = sortAscending ? tokenListLength - tokenListIndex : tokenListIndex + 1
const exploreTokenSelectedEventProperties = {
chain_id: filterNetwork,
token_address: tokenAddress,
token_symbol: tokenSymbol,
token_list_index: tokenListIndex,
token_list_rank: rank,
token_list_length: tokenListLength,
time_frame: timePeriod,
search_token_address_input: filterString,
......@@ -518,7 +520,7 @@ export const LoadedRow = forwardRef((props: LoadedRowProps, ref: ForwardedRef<HT
<FavoriteIcon isFavorited={isFavorited} />
</ClickFavorited>
}
listNumber={sortAscending ? tokenListLength - tokenListIndex : tokenListIndex + 1}
listNumber={rank}
tokenInfo={
<ClickableName>
<LogoContainer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment