Skip to content

Commit 33b5e06

Browse files
committed
fix(tcr-card): use valid networkId in place of undefined chainId
1 parent 24d4a24 commit 33b5e06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/tcr-card-content.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const StyledResult = styled(Result)`
2929

3030
const TCRCardContent = ({
3131
tcrAddress,
32-
chainId,
3332
currentTCRAddress,
3433
ID,
3534
hideDetailsButton
@@ -77,12 +76,12 @@ const TCRCardContent = ({
7776
</StyledItemCol>
7877
<StyledItemCol>
7978
{!hideDetailsButton && (
80-
<Link to={`/tcr/${chainId}/${currentTCRAddress}/${ID}`}>
79+
<Link to={`/tcr/${networkId}/${currentTCRAddress}/${ID}`}>
8180
<Button>Details</Button>
8281
</Link>
8382
)}
8483
<Link
85-
to={`/tcr/${chainId}/${tcrAddress}`}
84+
to={`/tcr/${networkId}/${tcrAddress}`}
8685
style={{ marginLeft: '12px' }}
8786
>
8887
<Button type="primary">Open List</Button>
@@ -124,12 +123,12 @@ const TCRCardContent = ({
124123
</div>
125124
<StyledItemCol>
126125
{!hideDetailsButton && (
127-
<Link to={`/tcr/${chainId}/${currentTCRAddress}/${ID}`}>
126+
<Link to={`/tcr/${networkId}/${currentTCRAddress}/${ID}`}>
128127
<Button>Details</Button>
129128
</Link>
130129
)}
131130
<Link
132-
to={`/tcr/${chainId}/${tcrAddress}`}
131+
to={`/tcr/${networkId}/${tcrAddress}`}
133132
style={{ marginLeft: '12px' }}
134133
>
135134
<Button type="primary">Open List</Button>

0 commit comments

Comments
 (0)