1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

fix asset details view

This commit is contained in:
Matthias Kretschmann 2020-07-15 13:11:21 +02:00
parent 6323c5bbb3
commit 7ba5e2c1f4
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -43,7 +43,7 @@ export default function AssetRoute(props: PageProps): ReactElement {
}
}
init()
}, [])
}, [did])
return did && metadata ? (
<Layout title={title} uri={props.location.pathname}>
@ -51,7 +51,7 @@ export default function AssetRoute(props: PageProps): ReactElement {
<AssetContent
did={did}
metadata={metadata as MetaDataMarket}
path="/asset/:did"
path=":did"
/>
</Router>
</Layout>