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

display filter only when necessary

This commit is contained in:
Bogdan Fazakas 2021-08-23 12:11:28 +03:00
parent 3afdaa236f
commit 54334bb6fd

View File

@ -58,11 +58,16 @@ export default function PublishedList({
return accountId ? (
<div>
<ServiceFilter
serviceType={service}
setServiceType={setServiceType}
isSearch={false}
/>
{queryResult?.results?.length > 0 ? (
<ServiceFilter
serviceType={service}
setServiceType={setServiceType}
isSearch={false}
/>
) : (
''
)}
<AssetList
assets={queryResult?.results}
isLoading={isLoading}