Skip to content

Commit 6e98547

Browse files
author
alagunoff
committed
fix: change route for "Create a pool" link
1 parent a5b61d8 commit 6e98547

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/pages/Pool/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default function Pool() {
101101

102102
const { positions, loading: positionsLoading } = useV3Positions(account)
103103

104+
const createPoolRoute = `/add/${chainId === ChainId.POLYGON_AMOY ? 'POL' : 'ETH'}`
104105
const menuItems = [
105106
{
106107
content: (
@@ -109,7 +110,7 @@ export default function Pool() {
109110
{t('Create a pool')}
110111
</MenuItem>
111112
),
112-
link: '/add/ETH',
113+
link: createPoolRoute,
113114
external: false,
114115
},
115116
{
@@ -167,11 +168,7 @@ export default function Pool() {
167168
</MoreOptionsButton>
168169
)}
169170
/>
170-
<ResponsiveButtonPrimary
171-
id="join-pool-button"
172-
as={Link}
173-
to={`/add/${chainId === ChainId.POLYGON_AMOY ? 'POL' : 'ETH'}`}
174-
>
171+
<ResponsiveButtonPrimary id="join-pool-button" as={Link} to={createPoolRoute}>
175172
+ {t('New Position')}
176173
</ResponsiveButtonPrimary>
177174
</ButtonRow>

0 commit comments

Comments
 (0)