File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments