1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

remove metadataCacheUri output from empty messages

* closes #134
This commit is contained in:
Matthias Kretschmann 2020-10-29 12:00:10 +01:00
parent c849fd0396
commit eae81505f6
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -7,14 +7,12 @@ import { updateQueryStringParameter } from '../../utils'
import styles from './AssetList.module.css' import styles from './AssetList.module.css'
import { MetadataMarket } from '../../@types/MetaData' import { MetadataMarket } from '../../@types/MetaData'
import { DDO } from '@oceanprotocol/lib' import { DDO } from '@oceanprotocol/lib'
import { useOcean } from '@oceanprotocol/react'
declare type AssetListProps = { declare type AssetListProps = {
queryResult: QueryResult queryResult: QueryResult
} }
const AssetList: React.FC<AssetListProps> = ({ queryResult }) => { const AssetList: React.FC<AssetListProps> = ({ queryResult }) => {
const { config } = useOcean()
const location = useLocation() const location = useLocation()
const navigate = useNavigate() const navigate = useNavigate()
@ -56,9 +54,7 @@ const AssetList: React.FC<AssetListProps> = ({ queryResult }) => {
) )
}) })
) : ( ) : (
<div className={styles.empty}> <div className={styles.empty}>No results found.</div>
No results found in {config.metadataCacheUri}
</div>
)} )}
</div> </div>