Skip to content

Commit 2d32a93

Browse files
authored
Merge pull request #348 from kleros/fix/list-creation
fix: list-creation
2 parents f486e9c + 549dd36 commit 2d32a93

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/components/item-details-card.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,16 @@ const ItemDetailsCard = ({
185185
))}
186186
</StyledFields>
187187
)}
188-
{isSeerRegistry(tcrAddress, chainId) && item && (
189-
<SeerExtraDetails
190-
chainId={chainId}
191-
contractAddress={item.decodedData[0]}
192-
imagesIpfsHash={item.decodedData[1]}
193-
/>
194-
)}
188+
{tcrAddress !== undefined &&
189+
chainId !== undefined &&
190+
isSeerRegistry(tcrAddress, chainId) &&
191+
item && (
192+
<SeerExtraDetails
193+
chainId={chainId}
194+
contractAddress={item.decodedData[0]}
195+
imagesIpfsHash={item.decodedData[1]}
196+
/>
197+
)}
195198
</Card>
196199
)
197200
}

0 commit comments

Comments
 (0)