Skip to content

Commit 793475f

Browse files
committed
fix trending project card v4v5 route
1 parent c57869f commit 793475f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Projects/TrendingProjectCard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DBProject } from 'models/dbProject'
1212
import Link from 'next/link'
1313
import { v2v3ProjectRoute } from 'packages/v2v3/utils/routes'
1414
import { ChainLogo } from 'packages/v4v5/components/ChainLogo'
15-
import { v4ProjectRoute } from 'packages/v4v5/utils/routes'
15+
import { v4v5ProjectRoute } from 'packages/v4v5/utils/routes'
1616
import { TRENDING_WINDOW_DAYS } from './RankingExplanation'
1717

1818
export default function TrendingProjectCard({
@@ -67,9 +67,10 @@ export default function TrendingProjectCard({
6767
href={
6868
(project.pv === PV_V4 || project.pv === PV_V5) &&
6969
project.chainIds?.length
70-
? v4ProjectRoute({
70+
? v4v5ProjectRoute({
7171
projectId: project.projectId,
7272
chainId: project.chainIds[0],
73+
version: parseInt(project.pv) as 4 | 5,
7374
})
7475
: project.pv === PV_V2
7576
? v2v3ProjectRoute(project)

0 commit comments

Comments
 (0)