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

fix asset list empty fallback

* seems aquarius returns `total_results: 1` when there are no `results`
This commit is contained in:
Matthias Kretschmann 2020-10-01 13:13:33 +02:00
parent f80f93489b
commit ea9ebdc23f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -43,7 +43,7 @@ const AssetList: React.FC<AssetListProps> = ({ queryResult }) => {
return (
<>
<div className={styles.assetList}>
{queryResult?.totalResults > 0 ? (
{queryResult?.results.length > 0 ? (
queryResult.results.map((ddo: DDO) => {
const { attributes } = ddo.findServiceByType('metadata')